Skip to content

Commit

Permalink
Merge pull request #115 from creative-commoners/pulls/4/php84
Browse files Browse the repository at this point in the history
API Explicity mark nullable parameters for PHP 8.4
  • Loading branch information
GuySartorelli authored Dec 2, 2024
2 parents 760b5de + 0c5755e commit 4a5493d
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 4a5493d

Please sign in to comment.