Skip to content

Commit

Permalink
Fix PHP 8.4 deprecation warning (#124)
Browse files Browse the repository at this point in the history
  • Loading branch information
robsontenorio authored Dec 28, 2024
1 parent cef6b19 commit 6a2f408
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Token.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Token
* @param string $publicKey
* @return mixed|null
*/
public static function decode(string $token = null, string $publicKey, int $leeway = 0, string $algorithm = 'RS256')
public static function decode(?string $token, string $publicKey, int $leeway = 0, string $algorithm = 'RS256')
{
JWT::$leeway = $leeway;
$publicKey = self::buildPublicKey($publicKey);
Expand Down

0 comments on commit 6a2f408

Please sign in to comment.