Skip to content

Commit 0e1d113

Browse files
committed
[FrameworkBundle] Remove deprecation layer for KernelBrowser::loginUser()
1 parent 04724ca commit 0e1d113

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

UPGRADE-7.0.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ FrameworkBundle
212212
* Make the `framework.validation.email_validation_mode` config option default to `html5`
213213
* Remove the `framework.validation.enable_annotations` config option, use `framework.validation.enable_attributes` instead
214214
* Remove the `framework.serializer.enable_annotations` config option, use `framework.serializer.enable_attributes` instead
215+
* Add `array $tokenAttributes = []` optional parameter to `KernelBrowser::loginUser()`
215216

216217
HttpFoundation
217218
--------------

src/Symfony/Bundle/FrameworkBundle/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)