diff --git a/src/Url.php b/src/Url.php index 56b8ddb..7759fcc 100644 --- a/src/Url.php +++ b/src/Url.php @@ -18,7 +18,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 627d983..807892e 100644 --- a/src/View/View.php +++ b/src/View/View.php @@ -20,11 +20,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;