Skip to content

Commit 7b1500b

Browse files
fix: Fix phpstan issues
1 parent d049c0d commit 7b1500b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/Command/WaitForDatabaseCommandTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public function testDatabaseAvailableAfterRetry(): void
6969
$this->assertSame(0, $result);
7070

7171
preg_match_all('/Connection failed/', $tester->getDisplay(), $match);
72-
$this->assertCount(1, $match[0] ?? []);
72+
$this->assertCount(1, $match[0]);
7373
}
7474

7575
public function testDatabaseFailAfterRetry(): void
@@ -97,6 +97,6 @@ public function testDatabaseFailAfterRetry(): void
9797
$this->assertSame(200, $result);
9898

9999
preg_match_all('/Connection failed/', $tester->getDisplay(), $match);
100-
$this->assertCount(4, $match[0] ?? []);
100+
$this->assertCount(4, $match[0]);
101101
}
102102
}

0 commit comments

Comments
 (0)