summaryrefslogtreecommitdiff
path: root/ext/pcre/php_pcre.stub.php
diff options
context:
space:
mode:
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 {}