Skip to content

Commit 6fd189f

Browse files
committed
[FrameworkBundle] Remove deprecation layer for KernelBrowser::loginUser()
1 parent dd0b3d9 commit 6fd189f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

KernelBrowser.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,8 @@ public function enableReboot(): void
100100
*
101101
* @return $this
102102
*/
103-
public function loginUser(object $user, string $firewallContext = 'main'/* , array $tokenAttributes = [] */): static
103+
public function loginUser(object $user, string $firewallContext = 'main', array $tokenAttributes = []): static
104104
{
105-
$tokenAttributes = 2 < \func_num_args() ? func_get_arg(2) : [];
106-
107105
if (!interface_exists(UserInterface::class)) {
108106
throw new \LogicException(sprintf('"%s" requires symfony/security-core to be installed. Try running "composer require symfony/security-core".', __METHOD__));
109107
}

0 commit comments

Comments
 (0)