Please fix the following errors:
',
+ ],
];
}
diff --git a/tests/framework/log/TargetTest.php b/tests/framework/log/TargetTest.php
index c6cceb3eaf4..bd422af738f 100644
--- a/tests/framework/log/TargetTest.php
+++ b/tests/framework/log/TargetTest.php
@@ -75,7 +75,12 @@ public function testFilter(array $filter, array $expected): void
$logger->log('testH', Logger::LEVEL_ERROR, 'yii.db.Command.whatever');
$logger->log('testI', Logger::LEVEL_ERROR, 'yii\db\Command::query');
- $this->assertEquals(count($expected), count(static::$messages), 'Expected ' . implode(',', $expected) . ', got ' . implode(',', array_column(static::$messages, 0)));
+ $messageColumn = [];
+ foreach (static::$messages as $message) {
+ $messageColumn[] = $message[0];
+ }
+
+ $this->assertEquals(count($expected), count(static::$messages), 'Expected ' . implode(',', $expected) . ', got ' . implode(',', $messageColumn));
$i = 0;
foreach ($expected as $e) {
$this->assertEquals('test' . $e, static::$messages[$i++][0]);