From 7da82f891c16967f42ec0d5dfba12bc590975e46 Mon Sep 17 00:00:00 2001 From: Fabien Papet Date: Fri, 23 Jun 2023 13:51:55 +0200 Subject: [PATCH] Update custom_authenticator.rst --- 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 76e2fc1b291..d9debbb1fb0 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 (string $userIdentifier): ?User { + new UserBadge($email, function (string $userIdentifier): ?UserInterface { return $this->userRepository->findOneBy(['email' => $userIdentifier]); }), $credentials