Skip to content

Commit 7da82f8

Browse files
FabienPapetxabbuh
authored andcommitted
Update custom_authenticator.rst
1 parent 2a6cd8b commit 7da82f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

security/custom_authenticator.rst

Lines changed: 1 addition & 1 deletion
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)