From 00e3c811d9bfd5586c8775ff0ff8c5cb86bccc80 Mon Sep 17 00:00:00 2001 From: RichardJong Date: Thu, 25 Jan 2024 12:25:19 +0100 Subject: [PATCH] Match interface Response is required --- doc/api.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api.rst b/doc/api.rst index 89e1d290..275c5bbb 100644 --- a/doc/api.rst +++ b/doc/api.rst @@ -200,7 +200,7 @@ reason. Implement a failure handler for it: class TwoFactorAuthenticationFailureHandler implements AuthenticationFailureHandlerInterface { - public function onAuthenticationFailure(Request $request, AuthenticationException $exception): ?Response + public function onAuthenticationFailure(Request $request, AuthenticationException $exception): Response { // Return the response to tell the client that 2fa failed. You may want to add more details // from the $exception.