Skip to content

Commit 049072e

Browse files
authored
Merge pull request #11400 from vimeo/mb_substitute_character
Better types for mb_substitute_character
2 parents e8d9a50 + eea1875 commit 049072e

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

stubs/CoreGenericFunctions.phpstub

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1653,6 +1653,12 @@ function is_a($object_or_class, string $class, $allow_string = false): bool{}
16531653
*/
16541654
function mb_convert_encoding(array|string $string, string $to_encoding, array|string|null $from_encoding = null): array|string|false{}
16551655

1656+
/**
1657+
* @param int|"none"|"long"|"entity"|null $substitute_character
1658+
* @return ($substitute_character is null ? (int|"none"|"long"|"entity") : bool)
1659+
*/
1660+
function mb_substitute_character(string|int|null $substitute_character = null): string|int|bool {}
1661+
16561662
/**
16571663
* @template TRead of null|array<array-key, resource>
16581664
* @template TWrite of null|array<array-key, resource>

0 commit comments

Comments
 (0)