diff --git a/security/custom_authenticator.rst b/security/custom_authenticator.rst index 4e38e01e82b..b87fd164c1f 100644 --- a/security/custom_authenticator.rst +++ b/security/custom_authenticator.rst @@ -239,7 +239,7 @@ using :ref:`the user provider `:: // ... return new Passport( - new UserBadge($email, function ($userIdentifier) { + new UserBadge($email, function (string $userIdentifier) { return $this->userRepository->findOneBy(['email' => $userIdentifier]); }), $credentials