summaryrefslogtreecommitdiff
path: root/ext/pcre/php_pcre.stub.php
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2019-08-11 14:28:10 +0200
committerNikita Popov <nikita.ppv@gmail.com>2019-08-11 14:28:10 +0200
commit228bae7d74a7886f05716ef5ac0f3ba200caccc4 (patch)
treef65b77d41e5c019ae6a14f997495adc113a47aab /ext/pcre/php_pcre.stub.php
parent4067519541850cfe47d031792f1d46829468706e (diff)
downloadphp-git-228bae7d74a7886f05716ef5ac0f3ba200caccc4.tar.gz
Use TypeError for preg_replace type check
This is a type violation warning, and as such should use TypeError in PHP 8.
Diffstat (limited to 'ext/pcre/php_pcre.stub.php')
-rw-r--r--ext/pcre/php_pcre.stub.php4
1 files changed, 2 insertions, 2 deletions
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) {}