Skip to content

Commit

Permalink
PHP 8.4 Implicitly nullable parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
mambax7 committed Nov 11, 2024
1 parent 2dd4171 commit 455bda3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Jwt/KeyFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class KeyFactory
*
* @throws \InvalidArgumentException on unusable key name
*/
public static function build($keyName, StorageInterface $storage = null)
public static function build($keyName, ?StorageInterface $storage = null)
{
if (empty($keyName) || !is_string($keyName)) {
throw new \InvalidArgumentException('keyName must be a non-empty string');
Expand Down

0 comments on commit 455bda3

Please sign in to comment.