Skip to content

Commit ec43ae8

Browse files
committed
Fix Psalm errors
1 parent e1bcdd5 commit ec43ae8

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/Symfony/Bundle/SecurityBundle/Tests/Functional/Bundle/AccessTokenBundle/Security/Http/JsonAuthenticationSuccessHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
class JsonAuthenticationSuccessHandler implements AuthenticationSuccessHandlerInterface
2121
{
22-
public function onAuthenticationSuccess(Request $request, TokenInterface $token): Response
22+
public function onAuthenticationSuccess(Request $request, TokenInterface $token): ?Response
2323
{
2424
return new JsonResponse(['message' => sprintf('Good game @%s!', $token->getUserIdentifier())]);
2525
}

src/Symfony/Bundle/SecurityBundle/Tests/Functional/Bundle/JsonLoginBundle/Security/Http/JsonAuthenticationSuccessHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
class JsonAuthenticationSuccessHandler implements AuthenticationSuccessHandlerInterface
2121
{
22-
public function onAuthenticationSuccess(Request $request, TokenInterface $token): Response
22+
public function onAuthenticationSuccess(Request $request, TokenInterface $token): ?Response
2323
{
2424
return new JsonResponse(['message' => sprintf('Good game @%s!', $token->getUserIdentifier())]);
2525
}

src/Symfony/Bundle/SecurityBundle/Tests/Functional/Bundle/LoginLink/TestCustomLoginLinkSuccessHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
class TestCustomLoginLinkSuccessHandler implements AuthenticationSuccessHandlerInterface
2121
{
22-
public function onAuthenticationSuccess(Request $request, TokenInterface $token): Response
22+
public function onAuthenticationSuccess(Request $request, TokenInterface $token): ?Response
2323
{
2424
return new JsonResponse(['message' => sprintf('Welcome %s!', $token->getUserIdentifier())]);
2525
}

src/Symfony/Component/Security/Http/Authentication/CustomAuthenticationSuccessHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function __construct(AuthenticationSuccessHandlerInterface $handler, arra
3737
}
3838
}
3939

40-
public function onAuthenticationSuccess(Request $request, TokenInterface $token): Response
40+
public function onAuthenticationSuccess(Request $request, TokenInterface $token): ?Response
4141
{
4242
return $this->handler->onAuthenticationSuccess($request, $token);
4343
}

src/Symfony/Component/Security/Http/Authentication/DefaultAuthenticationSuccessHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function __construct(HttpUtils $httpUtils, array $options = [], LoggerInt
5252
$this->setOptions($options);
5353
}
5454

55-
public function onAuthenticationSuccess(Request $request, TokenInterface $token): Response
55+
public function onAuthenticationSuccess(Request $request, TokenInterface $token): ?Response
5656
{
5757
return $this->httpUtils->createRedirectResponse($request, $this->determineTargetUrl($request));
5858
}

0 commit comments

Comments
 (0)