Skip to content

Commit caf7d8b

Browse files
Geordiechalasr
authored andcommitted
[Security] Fix TraceableAuthenticator::createToken() argument type
1 parent 413c5fa commit caf7d8b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Authenticator/Debug/TraceableAuthenticator.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
use Symfony\Component\Security\Guard\Authenticator\GuardBridgeAuthenticator;
1919
use Symfony\Component\Security\Http\Authenticator\AuthenticatorInterface;
2020
use Symfony\Component\Security\Http\Authenticator\InteractiveAuthenticatorInterface;
21-
use Symfony\Component\Security\Http\Authenticator\Passport\Passport;
2221
use Symfony\Component\Security\Http\Authenticator\Passport\PassportInterface;
2322
use Symfony\Component\Security\Http\EntryPoint\AuthenticationEntryPointInterface;
2423
use Symfony\Component\Security\Http\EntryPoint\Exception\NotAnEntryPointException;
@@ -67,7 +66,7 @@ public function authenticate(Request $request): PassportInterface
6766
return $this->passport;
6867
}
6968

70-
public function createToken(Passport $passport, string $firewallName): TokenInterface
69+
public function createToken(PassportInterface $passport, string $firewallName): TokenInterface
7170
{
7271
return method_exists($this->authenticator, 'createToken') ? $this->authenticator->createToken($passport, $firewallName) : $this->authenticator->createAuthenticatedToken($passport, $firewallName);
7372
}

0 commit comments

Comments
 (0)