Skip to content

Commit 32d4bc3

Browse files
committed
minor #18451 Fix return type on custom authenticators (FabienPapet)
This PR was submitted for the 6.4 branch but it was merged into the 6.2 branch instead. Discussion ---------- Fix return type on custom authenticators The return type of this part of the documentation is giving a class that has been deprecated in Symfony 5.3 Commits ------- 7da82f8 Update custom_authenticator.rst
2 parents 2a6cd8b + 7da82f8 commit 32d4bc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

security/custom_authenticator.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ using :ref:`the user provider <security-user-providers>`::
239239
// ...
240240

241241
return new Passport(
242-
new UserBadge($email, function (string $userIdentifier): ?User {
242+
new UserBadge($email, function (string $userIdentifier): ?UserInterface {
243243
return $this->userRepository->findOneBy(['email' => $userIdentifier]);
244244
}),
245245
$credentials

0 commit comments

Comments
 (0)