diff --git a/src/Symfony/Component/Security/Http/Authentication/AuthenticationSuccessHandlerInterface.php b/src/Symfony/Component/Security/Http/Authentication/AuthenticationSuccessHandlerInterface.php index 690234e710ba6..e440b36dd0920 100644 --- a/src/Symfony/Component/Security/Http/Authentication/AuthenticationSuccessHandlerInterface.php +++ b/src/Symfony/Component/Security/Http/Authentication/AuthenticationSuccessHandlerInterface.php @@ -29,5 +29,5 @@ interface AuthenticationSuccessHandlerInterface /** * Usually called by AuthenticatorInterface::onAuthenticationSuccess() implementations. */ - public function onAuthenticationSuccess(Request $request, TokenInterface $token): Response; + public function onAuthenticationSuccess(Request $request, TokenInterface $token): ?Response; }