From f72042d261fddd89dd7689d7348f2832d055f153 Mon Sep 17 00:00:00 2001 From: Thomas Landauer Date: Sun, 14 Aug 2022 17:01:04 +0200 Subject: [PATCH] Adding type hint --- security/custom_authenticator.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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