@@ -671,19 +671,19 @@ public function testPregReplaceCallback(): void
671
671
{
672
672
$ this ->analyse ([__DIR__ . '/data/preg_replace_callback.php ' ], [
673
673
[
674
- 'Parameter #2 $callback of function preg_replace_callback expects Closure (array{string}): string, Closure(string): string given. ' ,
674
+ 'Parameter #2 $callback of function preg_replace_callback expects callable (array{string}): string, Closure(string): string given. ' ,
675
675
6 ,
676
676
],
677
677
[
678
- 'Parameter #2 $callback of function preg_replace_callback expects Closure (array{string}): string, Closure(string): string given. ' ,
678
+ 'Parameter #2 $callback of function preg_replace_callback expects callable (array{string}): string, Closure(string): string given. ' ,
679
679
13 ,
680
680
],
681
681
[
682
- 'Parameter #2 $callback of function preg_replace_callback expects Closure (array{string}): string, Closure(array): void given. ' ,
682
+ 'Parameter #2 $callback of function preg_replace_callback expects callable (array{string}): string, Closure(array): void given. ' ,
683
683
20 ,
684
684
],
685
685
[
686
- 'Parameter #2 $callback of function preg_replace_callback expects Closure (array{string}): string, Closure(): void given. ' ,
686
+ 'Parameter #2 $callback of function preg_replace_callback expects callable (array{string}): string, Closure(): void given. ' ,
687
687
25 ,
688
688
],
689
689
]);
@@ -1774,7 +1774,7 @@ public function testParameterClosureTypeExtension(): void
1774
1774
1775
1775
$ this ->analyse ([__DIR__ . '/data/function-parameter-closure-type-extension.php ' ], [
1776
1776
[
1777
- 'Parameter #2 $callback of function preg_replace_callback expects Closure (array{0: array{string, int<-1, max>}, 1?: array{ \'\'| \'foo \', int<-1, max>}, 2?: array{ \'\'| \'bar \', int<-1, max>}, 3?: array{ \'baz \', int<-1, max>}}): string, Closure(array<int>): string given. ' ,
1777
+ 'Parameter #2 $callback of function preg_replace_callback expects callable (array{0: array{string, int<-1, max>}, 1?: array{ \'\'| \'foo \', int<-1, max>}, 2?: array{ \'\'| \'bar \', int<-1, max>}, 3?: array{ \'baz \', int<-1, max>}}): string, Closure(array<int>): string given. ' ,
1778
1778
44 ,
1779
1779
],
1780
1780
]);
0 commit comments