Skip to content

Commit c9dc567

Browse files
minor #42648 [Security] fix restrictive return annotation (nicolas-grekas)
This PR was merged into the 5.4 branch. Discussion ---------- [Security] fix restrictive return annotation | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | - | License | MIT | Doc PR | - See #42513 (comment) for rationale. Commits ------- 974e4ba [Security] fix restrictive return annotation
2 parents 695a83b + 974e4ba commit c9dc567

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/Symfony/Component/Security/Http/Authenticator/FormLoginAuthenticator.php

-3
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,6 @@ public function createAuthenticatedToken(PassportInterface $passport, string $fi
115115
return $this->createToken($passport, $firewallName);
116116
}
117117

118-
/**
119-
* @return UsernamePasswordToken
120-
*/
121118
public function createToken(Passport $passport, string $firewallName): TokenInterface
122119
{
123120
return new UsernamePasswordToken($passport->getUser(), $firewallName, $passport->getUser()->getRoles());

0 commit comments

Comments
 (0)