Skip to content

Commit 28437ba

Browse files
Merge branch '6.2' into 6.3
* 6.2: [Cache] Send Predis SSL options in the $hosts parameter [DependencyInjection] Do not ignore tags `name` attribute when it does not define their name [Contracts] Rename ServiceLocatorTest [Cache] Fix success interpretation when pruning cache Fix Psalm errors Make onAuthenticationSuccess Response optional [Security] Fix return type of AuthenticationSuccessHandlerInterface::onAuthenticationSuccess()
2 parents 1c0d181 + c468f05 commit 28437ba

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Authentication/AuthenticationSuccessHandlerInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@ interface AuthenticationSuccessHandlerInterface
2929
/**
3030
* Usually called by AuthenticatorInterface::onAuthenticationSuccess() implementations.
3131
*/
32-
public function onAuthenticationSuccess(Request $request, TokenInterface $token): Response;
32+
public function onAuthenticationSuccess(Request $request, TokenInterface $token): ?Response;
3333
}

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)