Skip to content

Commit

Permalink
mb_convert_encoding-can-return-false
Browse files Browse the repository at this point in the history
  • Loading branch information
jack-worman committed Dec 21, 2024
1 parent 6f121ae commit 8f1a5ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/PHPStan/Analyser/nsrt/mb_convert_encoding.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function test_mb_convert_encoding(
array $stringList,
array $intList,
): void {
\PHPStan\Testing\assertType('array|string|false', mb_convert_encoding($mixed, 'UTF-8'));
\PHPStan\Testing\assertType('array<array<bool|float|int|string|null>|bool|float|int|string|null>|string|false', mb_convert_encoding($mixed, 'UTF-8'));
\PHPStan\Testing\assertType('string|false', mb_convert_encoding($string, 'UTF-8'));
\PHPStan\Testing\assertType('array|false', mb_convert_encoding($mixedArray, 'UTF-8'));
\PHPStan\Testing\assertType('array{foo: string, bar: int}|false', mb_convert_encoding($structuredArray, 'UTF-8'));
Expand Down

0 comments on commit 8f1a5ed

Please sign in to comment.