From 4d068d91e8a0812ebecd49bcf9a5317775628b65 Mon Sep 17 00:00:00 2001 From: Michal Zimka Date: Tue, 3 Dec 2024 14:27:51 +0100 Subject: [PATCH] Fix deprecation notice in RefreshTokenAuthenticator::start method Explicitly marked parameter as nullable in the start method of the RefreshTokenAuthenticator class to comply with PHP 8.1+ standards. --- Security/Authenticator/RefreshTokenAuthenticator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Security/Authenticator/RefreshTokenAuthenticator.php b/Security/Authenticator/RefreshTokenAuthenticator.php index fa9e128e..eeb6bf2f 100644 --- a/Security/Authenticator/RefreshTokenAuthenticator.php +++ b/Security/Authenticator/RefreshTokenAuthenticator.php @@ -146,7 +146,7 @@ public function onAuthenticationFailure(Request $request, AuthenticationExceptio /** * @return Response */ - public function start(Request $request, AuthenticationException $authException = null) + public function start(Request $request, ?AuthenticationException $authException = null) { $data = [ // you might translate this message