@@ -772,17 +772,15 @@ public function testDiscussion7124(): void
772
772
}
773
773
774
774
$ errors = $ this ->runAnalyse (__DIR__ . '/data/discussion-7124.php ' );
775
- $ this ->assertCount (5 , $ errors );
776
- $ this ->assertSame ('Parameter #2 $callback of function array_filter expects callable(T): mixed, (callable(K): bool)|(callable(T): bool) given. ' , $ errors [0 ]->getMessage ());
777
- $ this ->assertSame (30 , $ errors [0 ]->getLine ());
778
- $ this ->assertSame ('Parameter #2 $callback of function Discussion7124\filter expects callable(bool, int=): bool, Closure(int, bool): bool given. ' , $ errors [1 ]->getMessage ());
779
- $ this ->assertSame (38 , $ errors [1 ]->getLine ());
780
- $ this ->assertSame ('Parameter #2 $callback of function Discussion7124\filter expects callable(bool, int=): bool, Closure(int): bool given. ' , $ errors [2 ]->getMessage ());
781
- $ this ->assertSame (45 , $ errors [2 ]->getLine ());
782
- $ this ->assertSame ('Parameter #2 $callback of function Discussion7124\filter expects callable(int): bool, Closure(bool): bool given. ' , $ errors [3 ]->getMessage ());
783
- $ this ->assertSame (52 , $ errors [3 ]->getLine ());
784
- $ this ->assertSame ('Parameter #2 $callback of function Discussion7124\filter expects callable(bool): bool, Closure(int): bool given. ' , $ errors [4 ]->getMessage ());
785
- $ this ->assertSame (59 , $ errors [4 ]->getLine ());
775
+ $ this ->assertCount (4 , $ errors );
776
+ $ this ->assertSame ('Parameter #2 $callback of function Discussion7124\filter expects callable(bool, int=): bool, Closure(int, bool): bool given. ' , $ errors [0 ]->getMessage ());
777
+ $ this ->assertSame (38 , $ errors [0 ]->getLine ());
778
+ $ this ->assertSame ('Parameter #2 $callback of function Discussion7124\filter expects callable(bool, int=): bool, Closure(int): bool given. ' , $ errors [1 ]->getMessage ());
779
+ $ this ->assertSame (45 , $ errors [1 ]->getLine ());
780
+ $ this ->assertSame ('Parameter #2 $callback of function Discussion7124\filter expects callable(int): bool, Closure(bool): bool given. ' , $ errors [2 ]->getMessage ());
781
+ $ this ->assertSame (52 , $ errors [2 ]->getLine ());
782
+ $ this ->assertSame ('Parameter #2 $callback of function Discussion7124\filter expects callable(bool): bool, Closure(int): bool given. ' , $ errors [3 ]->getMessage ());
783
+ $ this ->assertSame (59 , $ errors [3 ]->getLine ());
786
784
}
787
785
788
786
public function testBug7214 (): void
0 commit comments