From a58f18c836281a70835e87ada6bf171361bf19c8 Mon Sep 17 00:00:00 2001 From: System Administrator Date: Tue, 7 Oct 2025 12:07:59 +0300 Subject: [PATCH] =?UTF-8?q?fix:=20=D0=98=D0=BD=D0=B8=D1=86=D0=B8=D0=B0?= =?UTF-8?q?=D0=BB=D0=B8=D0=B7=D0=B0=D1=86=D0=B8=D1=8F=20=D0=BF=D0=B0=D1=80?= =?UTF-8?q?=D0=B0=D0=BC=D0=B5=D1=82=D1=80=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Url.php | 2 +- src/View/View.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Url.php b/src/Url.php index 67e145a..4700e5f 100644 --- a/src/Url.php +++ b/src/Url.php @@ -15,7 +15,7 @@ class Url { $this->parts = $parts; } - function addQueryParam(string $key, string $value): void { + function addQueryParam(string $key, ?string $value): void { $this->parts[$key] = $value; } diff --git a/src/View/View.php b/src/View/View.php index 70a565e..ba3a474 100644 --- a/src/View/View.php +++ b/src/View/View.php @@ -15,11 +15,11 @@ class View extends \stdClass protected ?string $_title = null; // Заголовок текущего шаблона - public string $active_module; + public ?string $active_module = null; public string $module_action; public array $prefix; - public array $suggestions; //подсказки + public array $suggestions = []; //подсказки public array $alias = []; public $codeGenerator = null;