From 98167a9221f010573df61acbace58618cacef0a8 Mon Sep 17 00:00:00 2001 From: Michal Zimka Date: Sun, 12 Jan 2025 01:31:39 +0100 Subject: [PATCH] Improve type hint for start method in RefreshTokenAuthenticator - Update the type hint of the parameter in the start method from AuthenticationException to ?AuthenticationException. - Enhance code clarity and ensure consistency with nullable parameter type definition. --- Security/Http/Authenticator/RefreshTokenAuthenticator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Security/Http/Authenticator/RefreshTokenAuthenticator.php b/Security/Http/Authenticator/RefreshTokenAuthenticator.php index 6102ff7..6d69de5 100644 --- a/Security/Http/Authenticator/RefreshTokenAuthenticator.php +++ b/Security/Http/Authenticator/RefreshTokenAuthenticator.php @@ -178,7 +178,7 @@ public function onAuthenticationFailure(Request $request, AuthenticationExceptio return $this->failureHandler->onAuthenticationFailure($request, $exception); } - public function start(Request $request, AuthenticationException $authException = null): Response + public function start(Request $request, ?AuthenticationException $authException = null): Response { $event = new RefreshTokenNotFoundEvent( new MissingTokenException('JWT Refresh Token not found', 0, $authException),