summaryrefslogtreecommitdiff
path: root/ext/pcre/php_pcre.stub.php
diff options
context:
space:
mode:
authorGeorge Peter Banyard <girgias@php.net>2020-06-22 15:46:23 +0200
committerGeorge Peter Banyard <girgias@php.net>2020-06-22 15:56:36 +0200
commit1a2732f9a8b3d62471b360f772b5458f78046f80 (patch)
tree86d60a6a36ee3a0e6464eb6f1b33a8531594a938 /ext/pcre/php_pcre.stub.php
parent26171c3690874743e1c71766e60248fbd974782f (diff)
downloadphp-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.php4
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 {}