From 170c30f82141d604a0f3e5aa284348ae016fc97d Mon Sep 17 00:00:00 2001 From: Wizard Date: Wed, 24 Sep 2025 13:04:25 +0300 Subject: [PATCH 1/2] fix: type decl --- src/HttpRequest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/HttpRequest.php b/src/HttpRequest.php index c8c0f7c..bc34252 100644 --- a/src/HttpRequest.php +++ b/src/HttpRequest.php @@ -55,7 +55,7 @@ class HttpRequest extends Collection return parent::get('data')->get($key, $default); } - function session(Session $value = null) + function session(?Session $value = null) { if ($value) { $this->_session = $value; From df5fd1ca6a108e3c8e0b52f24e4ca4424ed27c59 Mon Sep 17 00:00:00 2001 From: Wizard Date: Wed, 24 Sep 2025 16:46:59 +0300 Subject: [PATCH 2/2] =?UTF-8?q?chore:=20=D0=9E=D1=88=D0=B8=D0=B1=D0=BA?= =?UTF-8?q?=D0=B0=20deprecated=20implicitly=20nullable=20=D0=B2=20phpstan?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Model/Factory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Model/Factory.php b/src/Model/Factory.php index ab560e3..34f589b 100644 --- a/src/Model/Factory.php +++ b/src/Model/Factory.php @@ -11,7 +11,7 @@ class Factory public $config; public $user; - public function __construct(Database $db, Registry $config = null, User $user = null) + public function __construct(Database $db, ?Registry $config = null, ?User $user = null) { $this->db = $db; $this->config = $config;