diff --git a/src/Codeception/Module/Symfony/SessionAssertionsTrait.php b/src/Codeception/Module/Symfony/SessionAssertionsTrait.php index c9dfaee..538d718 100644 --- a/src/Codeception/Module/Symfony/SessionAssertionsTrait.php +++ b/src/Codeception/Module/Symfony/SessionAssertionsTrait.php @@ -43,7 +43,7 @@ public function amLoggedInWithToken(TokenInterface $token, string $firewallName $this->loginWithToken($token, $firewallName, $firewallContext); } - private function loginWithToken(TokenInterface $token, string $firewallName = 'main', string $firewallContext = null): void + protected function loginWithToken(TokenInterface $token, string $firewallName, ?string $firewallContext): void { $this->getTokenStorage()->setToken($token);