Skip to content

Commit 99b2d4d

Browse files
committed
fix test
1 parent 13937b8 commit 99b2d4d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

tests/PHPStan/Analyser/AnalyserIntegrationTest.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -841,11 +841,13 @@ public function testOffsetAccess(): void
841841
public function testUnresolvableParameter(): void
842842
{
843843
$errors = $this->runAnalyse(__DIR__ . '/data/unresolvable-parameter.php');
844-
$this->assertCount(2, $errors);
845-
$this->assertSame('Method UnresolvableParameter\Collection::pipeInto() has parameter $class with no type specified.', $errors[0]->getMessage());
846-
$this->assertSame(30, $errors[0]->getLine());
847-
$this->assertSame('PHPDoc tag @param for parameter $class contains unresolvable type.', $errors[1]->getMessage());
844+
$this->assertCount(3, $errors);
845+
$this->assertSame('Parameter #2 $array of function array_map expects array, list<string>|false given.', $errors[0]->getMessage());
846+
$this->assertSame(18, $errors[0]->getLine());
847+
$this->assertSame('Method UnresolvableParameter\Collection::pipeInto() has parameter $class with no type specified.', $errors[1]->getMessage());
848848
$this->assertSame(30, $errors[1]->getLine());
849+
$this->assertSame('PHPDoc tag @param for parameter $class contains unresolvable type.', $errors[2]->getMessage());
850+
$this->assertSame(30, $errors[2]->getLine());
849851
}
850852

851853
public function testBug7248(): void

0 commit comments

Comments
 (0)