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;