diff --git a/tests/FunctionCallTest.php b/tests/FunctionCallTest.php index 1197d861e04..2b425b3ec75 100644 --- a/tests/FunctionCallTest.php +++ b/tests/FunctionCallTest.php @@ -1747,6 +1747,24 @@ function sayHello(string $needle): void { [], '8.1', ], + 'count_charsProducesArrayOrString' => [ + ' [ + '$a===' => 'array', + '$b===' => 'array', + '$c===' => 'array', + '$d===' => 'string', + '$e===' => 'string', + ], + [], + '8.1', + ], ]; } @@ -2284,6 +2302,13 @@ function takesAString(string $s): void{ echo get_class();', 'error_message' => 'TooFewArguments', ], + 'count_charsWithInvalidMode' => [ + ' 'ArgumentTypeCoercion', + ], ]; }