diff options
Diffstat (limited to 'ext/pcre/php_pcre.stub.php')
-rw-r--r-- | ext/pcre/php_pcre.stub.php | 25 |
1 files changed, 5 insertions, 20 deletions
diff --git a/ext/pcre/php_pcre.stub.php b/ext/pcre/php_pcre.stub.php index 58bc5c378f..97f08eec0f 100644 --- a/ext/pcre/php_pcre.stub.php +++ b/ext/pcre/php_pcre.stub.php @@ -6,32 +6,17 @@ function preg_match(string $pattern, string $subject, &$subpatterns = null, int function preg_match_all(string $pattern, string $subject, &$subpatterns = null, int $flags = 0, int $offset = 0): int|false|null {} -/** - * @param string|array $regex - * @param string|array $replace - * @param string|array $subject - */ -function preg_replace($regex, $replace, $subject, int $limit = -1, &$count = null): string|array|null {} - -/** - * @param string|array $regex - * @param string|array $replace - * @param string|array $subject - */ -function preg_filter($regex, $replace, $subject, int $limit = -1, &$count = null): string|array|null {} - -/** - * @param string|array $regex - * @param string|array $subject - */ -function preg_replace_callback($regex, callable $callback, $subject, int $limit = -1, &$count = null, int $flags = 0): string|array|null {} +function preg_replace(string|array $regex, string|array $replace, string|array $subject, int $limit = -1, &$count = null): string|array|null {} + +function preg_filter(string|array $regex, string|array $replace, string|array $subject, int $limit = -1, &$count = null): string|array|null {} + +function preg_replace_callback(string|array $regex, callable $callback, string|array $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 {} function preg_split(string $pattern, string $subject, int $limit = -1, int $flags = 0): array|false {} - function preg_quote(string $str, ?string $delim_char = null): string {} function preg_grep(string $regex, array $input, int $flags = 0): array|false {} |