File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -841,11 +841,13 @@ public function testOffsetAccess(): void
841
841
public function testUnresolvableParameter (): void
842
842
{
843
843
$ 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 ());
848
848
$ 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 ());
849
851
}
850
852
851
853
public function testBug7248 (): void
You can’t perform that action at this time.
0 commit comments