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.
1 parent b480bf1 commit 9e0ea24Copy full SHA for 9e0ea24
src/Codeception/Module/Yii2.php
@@ -256,7 +256,7 @@ final class Yii2 extends Framework implements ActiveRecord, PartedModule
256
*/
257
private array $server;
258
259
- private Logger $yiiLogger;
+ private null|Logger $yiiLogger = null;
260
261
private function getClient(): Yii2Connector
262
{
@@ -292,7 +292,7 @@ protected function onReconfigure(): void
292
$this->getClient()->resetApplication();
293
$this->validateConfig();
294
$this->configureClient($this->config);
295
- $this->yiiLogger->getAndClearLog();
+ $this->yiiLogger?->getAndClearLog();
296
$this->getClient()->startApp($this->yiiLogger);
297
}
298
0 commit comments