Skip to content

Commit f72042d

Browse files
Adding type hint
1 parent 9e11eea commit f72042d

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 ($userIdentifier) {
242+
new UserBadge($email, function (string $userIdentifier) {
243243
return $this->userRepository->findOneBy(['email' => $userIdentifier]);
244244
}),
245245
$credentials

0 commit comments

Comments
 (0)