Skip to content

Commit c468f05

Browse files
committed
Fix Psalm errors
1 parent 1310b9e commit c468f05

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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
}

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)