Skip to content

Commit e6ea536

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 symfony/symfony#42513 (comment) for rationale. Commits ------- 974e4ba23d [Security] fix restrictive return annotation
2 parents f364ce6 + c6d170f commit e6ea536

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Authenticator/FormLoginAuthenticator.php

Lines changed: 0 additions & 3 deletions
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)