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));
@@ -103,10 +114,13 @@ public function authenticate(RequestEvent $event)
103
114
}
104
115
105
116
// @deprecated since Symfony 5.4
106
-
if (!$token->isAuthenticated(false)) {
117
+
if (method_exists($token, 'isAuthenticated') && !$token->isAuthenticated(false)) {
107
118
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