@@ -763,11 +763,11 @@ public function testDiscussion7124(): void
763763
764764 $ errors = $ this ->runAnalyse (__DIR__ . '/data/discussion-7124.php ' );
765765 $ this ->assertCount (4 , $ errors );
766- $ this ->assertSame ('Parameter #2 $callback of function Discussion7124\filter expects callable(bool, int ): bool, Closure(int, bool): bool given. ' , $ errors [0 ]->getMessage ());
766+ $ this ->assertSame ('Parameter #2 $callback of function Discussion7124\filter expects callable(bool, 0|1|2 ): bool, Closure(int, bool): bool given. ' , $ errors [0 ]->getMessage ());
767767 $ this ->assertSame (38 , $ errors [0 ]->getLine ());
768- $ this ->assertSame ('Parameter #2 $callback of function Discussion7124\filter expects callable(bool, int ): bool, Closure(int): bool given. ' , $ errors [1 ]->getMessage ());
768+ $ this ->assertSame ('Parameter #2 $callback of function Discussion7124\filter expects callable(bool, 0|1|2 ): bool, Closure(int): bool given. ' , $ errors [1 ]->getMessage ());
769769 $ this ->assertSame (45 , $ errors [1 ]->getLine ());
770- $ this ->assertSame ('Parameter #2 $callback of function Discussion7124\filter expects callable(int ): bool, Closure(bool): bool given. ' , $ errors [2 ]->getMessage ());
770+ $ this ->assertSame ('Parameter #2 $callback of function Discussion7124\filter expects callable(0|1|2 ): bool, Closure(bool): bool given. ' , $ errors [2 ]->getMessage ());
771771 $ this ->assertSame (52 , $ errors [2 ]->getLine ());
772772 $ this ->assertSame ('Parameter #2 $callback of function Discussion7124\filter expects callable(bool): bool, Closure(int): bool given. ' , $ errors [3 ]->getMessage ());
773773 $ this ->assertSame (59 , $ errors [3 ]->getLine ());
0 commit comments