Skip to content

Commit 681b4c1

Browse files
committed
Fix KernelBrowser::loginUser() causing deprecation
1 parent e4870b0 commit 681b4c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bundle/FrameworkBundle/KernelBrowser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public function loginUser(object $user, string $firewallContext = 'main'): self
125125
$token = new TestBrowserToken($user->getRoles(), $user, $firewallContext);
126126
// @deprecated since Symfony 5.4
127127
if (method_exists($token, 'setAuthenticated')) {
128-
$token->setAuthenticated(true);
128+
$token->setAuthenticated(true, false);
129129
}
130130

131131
$container = $this->getContainer();

0 commit comments

Comments
 (0)