Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Codeception/Module/Yii2.php
Original file line number Diff line number Diff line change
Expand Up @@ -460,8 +460,8 @@
*/
public function _failed(TestInterface $test, $fail): void
{
$log = $this->yiiLogger->getAndClearLog();
if ($log !== '') {
$log = $this->yiiLogger?->getAndClearLog();

Check failure on line 463 in src/Codeception/Module/Yii2.php

View workflow job for this annotation

GitHub Actions / tests (8.4)

Using nullsafe method call on non-nullable type Codeception\Lib\Connector\Yii2\Logger. Use -> instead.

Check failure on line 463 in src/Codeception/Module/Yii2.php

View workflow job for this annotation

GitHub Actions / tests (8.3)

Using nullsafe method call on non-nullable type Codeception\Lib\Connector\Yii2\Logger. Use -> instead.
if (isset($log) && $log !== '') {

Check failure on line 464 in src/Codeception/Module/Yii2.php

View workflow job for this annotation

GitHub Actions / tests (8.4)

Variable $log in isset() always exists and is not nullable.

Check failure on line 464 in src/Codeception/Module/Yii2.php

View workflow job for this annotation

GitHub Actions / tests (8.3)

Variable $log in isset() always exists and is not nullable.
$test->getMetadata()->addReport('yii-log', $log);
}

Expand Down
Loading