You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if ($salt && !$userinstanceof LegacyPasswordAuthenticatedUserInterface) {
79
79
trigger_deprecation('symfony/security-http', '5.3', 'Returning a string from "getSalt()" without implementing the "%s" interface is deprecated, the "%s" class should implement it.', LegacyPasswordAuthenticatedUserInterface::class, get_debug_type($user));
@@ -109,10 +113,13 @@ public function authenticate(RequestEvent $event)
109
113
}
110
114
111
115
// @deprecated since Symfony 5.4
112
-
if (!$token->isAuthenticated(false)) {
116
+
if (method_exists($token, 'isAuthenticated') && !$token->isAuthenticated(false)) {
113
117
trigger_deprecation('symfony/core', '5.4', 'Returning false from "%s()" is deprecated and won\'t have any effect in Symfony 6.0 as security tokens will always be considered authenticated.');
0 commit comments