Skip to content

Commit ce001f2

Browse files
authored
Rename $user to $userComponent
Checking user component was overwriting the method parameter with the same name `$user`.
1 parent 219fbd9 commit ce001f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Codeception/Lib/Connector/Yii2.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,8 @@ public function resetApplication(bool $closeSession = true): void
133133
public function findAndLoginUser(int|string|IdentityInterface $user): void
134134
{
135135
$app = $this->getApplication();
136-
$user = $app->get('user');
137-
if (!$user instanceof User) {
136+
$userComponent = $app->get('user');
137+
if (!$userComponent instanceof User) {
138138
throw new ConfigurationException('The user component is not configured');
139139
}
140140

0 commit comments

Comments
 (0)