From 228bae7d74a7886f05716ef5ac0f3ba200caccc4 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Sun, 11 Aug 2019 14:28:10 +0200 Subject: Use TypeError for preg_replace type check This is a type violation warning, and as such should use TypeError in PHP 8. --- ext/pcre/php_pcre.stub.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/pcre/php_pcre.stub.php') diff --git a/ext/pcre/php_pcre.stub.php b/ext/pcre/php_pcre.stub.php index f4730f1b60..8a97cb4516 100644 --- a/ext/pcre/php_pcre.stub.php +++ b/ext/pcre/php_pcre.stub.php @@ -10,7 +10,7 @@ function preg_match_all(string $pattern, string $subject, &$subpatterns = null, * @param string|array $regex * @param string|array $replace * @param string|array $subject - * @return string|array|null|false + * @return string|array|null */ function preg_replace($regex, $replace, $subject, int $limit = -1, &$count = null) {} @@ -18,7 +18,7 @@ function preg_replace($regex, $replace, $subject, int $limit = -1, &$count = nul * @param string|array $regex * @param string|array $replace * @param string|array $subject - * @return string|array|null|false + * @return string|array|null */ function preg_filter($regex, $replace, $subject, int $limit = -1, &$count = null) {} -- cgit v1.2.1