Skip to content

Commit db052cc

Browse files
committed
feat fix test
1 parent 68da760 commit db052cc

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

tests/PHPStan/Analyser/AnalyserIntegrationTest.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -890,13 +890,7 @@ public function testBug7500(): void
890890
public function testBug7554(): void
891891
{
892892
$errors = $this->runAnalyse(__DIR__ . '/data/bug-7554.php');
893-
$this->assertCount(2, $errors);
894-
895-
$this->assertSame(sprintf('Parameter #1 $%s of function count expects array|Countable, list<array<int, int<0, max>|string>>|false given.', PHP_VERSION_ID < 80000 ? 'var' : 'value'), $errors[0]->getMessage());
896-
$this->assertSame(26, $errors[0]->getLine());
897-
898-
$this->assertSame('Cannot access offset int<1, max> on list<array{string, int<0, max>}>|false.', $errors[1]->getMessage());
899-
$this->assertSame(27, $errors[1]->getLine());
893+
$this->assertCount(0, $errors);
900894
}
901895

902896
public function testBug7637(): void

0 commit comments

Comments
 (0)