diff options
author | George Peter Banyard <girgias@php.net> | 2020-06-22 15:46:23 +0200 |
---|---|---|
committer | George Peter Banyard <girgias@php.net> | 2020-06-22 15:56:36 +0200 |
commit | 1a2732f9a8b3d62471b360f772b5458f78046f80 (patch) | |
tree | 86d60a6a36ee3a0e6464eb6f1b33a8531594a938 /ext/pcre/php_pcre.stub.php | |
parent | 26171c3690874743e1c71766e60248fbd974782f (diff) | |
download | php-git-1a2732f9a8b3d62471b360f772b5458f78046f80.tar.gz |
Use ZPP callable check for preg_replace_callback() $callback argument
Diffstat (limited to 'ext/pcre/php_pcre.stub.php')
-rw-r--r-- | ext/pcre/php_pcre.stub.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ext/pcre/php_pcre.stub.php b/ext/pcre/php_pcre.stub.php index af76b520f8..58bc5c378f 100644 --- a/ext/pcre/php_pcre.stub.php +++ b/ext/pcre/php_pcre.stub.php @@ -23,10 +23,8 @@ function preg_filter($regex, $replace, $subject, int $limit = -1, &$count = null /** * @param string|array $regex * @param string|array $subject - * - * TODO: $callback should be `callable` */ -function preg_replace_callback($regex, $callback, $subject, int $limit = -1, &$count = null, int $flags = 0): string|array|null {} +function preg_replace_callback($regex, callable $callback, $subject, int $limit = -1, &$count = null, int $flags = 0): string|array|null {} /** @param string|array $subject */ function preg_replace_callback_array(array $pattern, $subject, int $limit = -1, &$count = null, int $flags = 0): string|array|null {} |