diff --git a/src/Token/AppleAccessToken.php b/src/Token/AppleAccessToken.php index f872956..3820f53 100644 --- a/src/Token/AppleAccessToken.php +++ b/src/Token/AppleAccessToken.php @@ -50,8 +50,7 @@ public function __construct(array $keys, array $options = []) $decodeMethodReflection = new \ReflectionMethod(JWT::class, 'decode'); $decodeMethodParameters = $decodeMethodReflection->getParameters(); // Backwards compatibility for firebase/php-jwt >=5.2.0 <=5.5.1 supported by PHP 5.6 - if ( - array_key_exists(2, $decodeMethodParameters) && + if (array_key_exists(2, $decodeMethodParameters) && 'allowed_algs' === $decodeMethodParameters[2]->getName() ) { $decoded = JWT::decode($options['id_token'], $key, ['RS256']);