diff options
author | Christoph M. Becker <cmbecker69@gmx.de> | 2020-02-16 19:20:54 +0100 |
---|---|---|
committer | Christoph M. Becker <cmbecker69@gmx.de> | 2020-02-16 23:43:38 +0100 |
commit | c31029f335ca1b453af799805c43c37e959ad555 (patch) | |
tree | 15f57cdb50525d2f05e0016c795a1ca7a72e17b9 /ext/pcre/php_pcre.stub.php | |
parent | 6ee6097688a8c64e0e0ba166d48b16a93bf107a2 (diff) | |
download | php-git-c31029f335ca1b453af799805c43c37e959ad555.tar.gz |
Replace @param annotations with type declarations
Diffstat (limited to 'ext/pcre/php_pcre.stub.php')
-rw-r--r-- | ext/pcre/php_pcre.stub.php | 22 |
1 files changed, 4 insertions, 18 deletions
diff --git a/ext/pcre/php_pcre.stub.php b/ext/pcre/php_pcre.stub.php index 397ab22159..01399f0fbc 100644 --- a/ext/pcre/php_pcre.stub.php +++ b/ext/pcre/php_pcre.stub.php @@ -4,30 +4,16 @@ 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 {} +function preg_replace(string|array $regex, string|array $replace, string|array $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 {} +function preg_filter(string|array $regex, string|array $replace, string|array $subject, int $limit = -1, &$count = null): string|array|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(string|array $regex, $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_replace_callback_array(array $pattern, string|array $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 {} |