From 974e4ba23d0ed28b786aac348b441a31db8a5619 Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Thu, 19 Aug 2021 16:45:22 +0200 Subject: [PATCH] [Security] fix restrictive return annotation --- .../Security/Http/Authenticator/FormLoginAuthenticator.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/Symfony/Component/Security/Http/Authenticator/FormLoginAuthenticator.php b/src/Symfony/Component/Security/Http/Authenticator/FormLoginAuthenticator.php index d09e74d8ea55f..6cbb307932a43 100644 --- a/src/Symfony/Component/Security/Http/Authenticator/FormLoginAuthenticator.php +++ b/src/Symfony/Component/Security/Http/Authenticator/FormLoginAuthenticator.php @@ -115,9 +115,6 @@ public function createAuthenticatedToken(PassportInterface $passport, string $fi return $this->createToken($passport, $firewallName); } - /** - * @return UsernamePasswordToken - */ public function createToken(Passport $passport, string $firewallName): TokenInterface { return new UsernamePasswordToken($passport->getUser(), $firewallName, $passport->getUser()->getRoles());