default arg for preg_replace_callback_array $count (#624)

* default arg for preg_replace_callback_array $count

* preg_replace_callback_array parameter cosmetics
This commit is contained in:
Ben Mewburn 2019-06-28 19:33:15 +10:00 committed by Aleksander
parent 41f530afb0
commit c933cede49
1 changed files with 1 additions and 1 deletions

View File

@ -316,7 +316,7 @@ function preg_replace_callback ($pattern, callable $callback, $subject, $limit =
* @return string|string[]|null <p>preg_replace_callback_array() returns an array if the subject parameter is an array, or a string otherwise. On errors the return value is NULL</p>
* <p>If matches are found, the new subject will be returned, otherwise subject will be returned unchanged.</p>
*/
function preg_replace_callback_array ($patterns_and_callbacks, $subject , $limit = -1, &$count ) {}
function preg_replace_callback_array ($patterns_and_callbacks, $subject , $limit = -1, &$count = null) {}
/**
* Perform a regular expression search and replace