From efe869d4c02344c7c1e8db05cac1920e3d1329c6 Mon Sep 17 00:00:00 2001 From: db306 Date: Tue, 22 Nov 2022 18:02:32 +0100 Subject: [PATCH] Make onAuthenticationSuccess Response optional --- .../Authentication/AuthenticationSuccessHandlerInterface.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/Security/Http/Authentication/AuthenticationSuccessHandlerInterface.php b/src/Symfony/Component/Security/Http/Authentication/AuthenticationSuccessHandlerInterface.php index 690234e710ba..e440b36dd092 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; }