We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
$user
$userComponent
1 parent 219fbd9 commit ce001f2Copy full SHA for ce001f2
src/Codeception/Lib/Connector/Yii2.php
@@ -133,8 +133,8 @@ public function resetApplication(bool $closeSession = true): void
133
public function findAndLoginUser(int|string|IdentityInterface $user): void
134
{
135
$app = $this->getApplication();
136
- $user = $app->get('user');
137
- if (!$user instanceof User) {
+ $userComponent = $app->get('user');
+ if (!$userComponent instanceof User) {
138
throw new ConfigurationException('The user component is not configured');
139
}
140
0 commit comments