@@ -587,27 +587,35 @@ public function testArrayWalkCallback(): void
587587 {
588588 $ this ->analyse ([__DIR__ . '/data/array_walk.php ' ], [
589589 [
590- 'Parameter #2 $callback of function array_walk expects callable(int, string, mixed ): mixed, Closure(stdClass, float): \'\' given. ' ,
590+ 'Parameter #2 $callback of function array_walk expects callable(1|2, \' bar \' | \' foo \' ): mixed, Closure(stdClass, float): \'\' given. ' ,
591591 6 ,
592592 ],
593593 [
594- 'Parameter #2 $callback of function array_walk expects callable(int, string, string ): mixed, Closure(int, string, int): \'\' given. ' ,
594+ 'Parameter #2 $callback of function array_walk expects callable(1|2, \' bar \' | \' foo \' , \' extra \' ): mixed, Closure(int, string, int): \'\' given. ' ,
595595 14 ,
596596 ],
597+ [
598+ 'Parameter #2 $callback of function array_walk expects callable(1|2, \'bar \'| \'foo \'): mixed, Closure(int, string, int): \'\' given. ' ,
599+ 23 ,
600+ ],
597601 ]);
598602 }
599603
600604 public function testArrayWalkArrowFunctionCallback (): void
601605 {
602606 $ this ->analyse ([__DIR__ . '/data/array_walk_arrow.php ' ], [
603607 [
604- 'Parameter #2 $callback of function array_walk expects callable(int, string, mixed ): mixed, Closure(stdClass, float): \'\' given. ' ,
608+ 'Parameter #2 $callback of function array_walk expects callable(1|2, \' bar \' | \' foo \' ): mixed, Closure(stdClass, float): \'\' given. ' ,
605609 6 ,
606610 ],
607611 [
608- 'Parameter #2 $callback of function array_walk expects callable(int, string, string ): mixed, Closure(int, string, int): \'\' given. ' ,
612+ 'Parameter #2 $callback of function array_walk expects callable(1|2, \' bar \' | \' foo \' , \' extra \' ): mixed, Closure(int, string, int): \'\' given. ' ,
609613 12 ,
610614 ],
615+ [
616+ 'Parameter #2 $callback of function array_walk expects callable(1|2, \'bar \'| \'foo \'): mixed, Closure(int, string, int): \'\' given. ' ,
617+ 19 ,
618+ ],
611619 ]);
612620 }
613621
0 commit comments