Skip to content

Commit 6a2f408

Browse files
Fix PHP 8.4 deprecation warning (#124)
1 parent cef6b19 commit 6a2f408

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Token.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class Token
1414
* @param string $publicKey
1515
* @return mixed|null
1616
*/
17-
public static function decode(string $token = null, string $publicKey, int $leeway = 0, string $algorithm = 'RS256')
17+
public static function decode(?string $token, string $publicKey, int $leeway = 0, string $algorithm = 'RS256')
1818
{
1919
JWT::$leeway = $leeway;
2020
$publicKey = self::buildPublicKey($publicKey);

0 commit comments

Comments
 (0)