str_replace() can return the original string

This commit is contained in:
Nikita Popov 2021-08-30 10:22:45 +02:00
parent f6d30cfba7
commit 0f7e0cf34b
3 changed files with 3 additions and 5 deletions

View file

@ -745,14 +745,12 @@ function stripslashes(string $string): string {}
/**
* @param int $count
* @return string|array<int|string, string>
* @refcount 1
*/
function str_replace(array|string $search, array|string $replace, string|array $subject, &$count = null): string|array {}
/**
* @param int $count
* @return string|array<int|string, string>
* @refcount 1
*/
function str_ireplace(array|string $search, array|string $replace, string|array $subject, &$count = null): string|array {}