Skip to content

Commit

Permalink
Improve type hint for start method in RefreshTokenAuthenticator
Browse files Browse the repository at this point in the history
- 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.
  • Loading branch information
gzim324 committed Jan 12, 2025
1 parent 4d068d9 commit 98167a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Security/Http/Authenticator/RefreshTokenAuthenticator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 98167a9

Please sign in to comment.