diff --git a/src/Grant/AbstractGrant.php b/src/Grant/AbstractGrant.php index 0b3aeba87..c77330e26 100644 --- a/src/Grant/AbstractGrant.php +++ b/src/Grant/AbstractGrant.php @@ -454,7 +454,7 @@ protected function issueAccessToken( $accessToken->setExpiryDateTime((new DateTimeImmutable())->add($accessTokenTTL)); $accessToken->setPrivateKey($this->privateKey); - if (method_exists($accessToken, 'addClaim')) { + if (\method_exists($accessToken, 'addClaim')) { foreach ($claims as $claim) { $accessToken->addClaim($claim); }