We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cef6b19 commit 6a2f408Copy full SHA for 6a2f408
src/Token.php
@@ -14,7 +14,7 @@ class Token
14
* @param string $publicKey
15
* @return mixed|null
16
*/
17
- 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')
18
{
19
JWT::$leeway = $leeway;
20
$publicKey = self::buildPublicKey($publicKey);
0 commit comments