From e2bb1dce2c03ce7304c152e06357b5edfa6d2165 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Thu, 28 Nov 2024 14:03:08 +1300 Subject: [PATCH] API Explicity mark nullable paramters for PHP 8.4 --- src/HybridSession.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/HybridSession.php b/src/HybridSession.php index 06bcef2..9d8e6eb 100644 --- a/src/HybridSession.php +++ b/src/HybridSession.php @@ -122,7 +122,7 @@ public function gc(int $maxlifetime): int|false * * @param string $key Desired session key */ - public static function init(string $key = null) + public static function init(?string $key = null) { $instance = Injector::inst()->get(__CLASS__);