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