Skip to content

Commit

Permalink
fix PHP7.2 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ldaspt committed Apr 15, 2024
1 parent bd610b7 commit 89dcc6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EventListener/RejectBlockedTokenListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function __invoke(JWTAuthenticatedEvent $event): void
if ($this->blockedTokenManager->has($event->getPayload())) {
throw new InvalidTokenException('JWT blocked');
}
} catch (MissingClaimException) {
} catch (MissingClaimException $e) {
// Do nothing if the required claims do not exist on the payload (older JWTs won't have the "jti" claim the manager requires)
}
}
Expand Down

0 comments on commit 89dcc6b

Please sign in to comment.