From ae1257fa5297a0b7d81943d3e0ae4fd6e60cea9e Mon Sep 17 00:00:00 2001 From: Alessandro Lai Date: Thu, 24 Aug 2023 17:59:11 +0200 Subject: [PATCH] Silence isAuthenticated deprecation in LoginListener --- src/EventListener/LoginListener.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/EventListener/LoginListener.php b/src/EventListener/LoginListener.php index 6e6d47a8..2a766cc7 100644 --- a/src/EventListener/LoginListener.php +++ b/src/EventListener/LoginListener.php @@ -109,7 +109,7 @@ private function updateUserContext(TokenInterface $token): void private function isTokenAuthenticated(TokenInterface $token): bool { - if (method_exists($token, 'isAuthenticated') && !$token->isAuthenticated()) { + if (method_exists($token, 'isAuthenticated') && !$token->isAuthenticated(false)) { return false; }