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 1d79e35 commit 6710412Copy full SHA for 6710412
src/Grant/AbstractGrant.php
@@ -454,8 +454,10 @@ protected function issueAccessToken(
454
$accessToken->setExpiryDateTime((new DateTimeImmutable())->add($accessTokenTTL));
455
$accessToken->setPrivateKey($this->privateKey);
456
457
- foreach ($claims as $claim) {
458
- $accessToken->addClaim($claim);
+ if (method_exists($accessToken, 'addClaim')) {
+ foreach ($claims as $claim) {
459
+ $accessToken->addClaim($claim);
460
+ }
461
}
462
463
while ($maxGenerationAttempts-- > 0) {
0 commit comments