Skip to content

Commit

Permalink
API Explicity mark nullable paramters for PHP 8.4
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Nov 28, 2024
1 parent 760b5de commit bc438e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/HybridSession.php
Original file line number Diff line number Diff line change
Expand Up @@ -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__);

Expand Down

0 comments on commit bc438e4

Please sign in to comment.