Skip to content

Commit a10f2a0

Browse files
wkritzingersamdark
authored andcommitted
Restore null check for client in Yii2 (fix #4929) (#4940)
1 parent 9b949ab commit a10f2a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Codeception/Module/Yii2.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ public function _after(TestInterface $test)
355355
$this->loadedFixtures = [];
356356
}
357357

358-
if ($this->client->getApplication()->has('session', true)) {
358+
if ($this->client !== null && $this->client->getApplication()->has('session', true)) {
359359
$this->client->getApplication()->session->close();
360360
}
361361
parent::_after($test);

0 commit comments

Comments
 (0)