diff options
| author | Nikita Popov <nikita.ppv@gmail.com> | 2020-09-25 12:31:05 +0200 |
|---|---|---|
| committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-09-25 12:31:05 +0200 |
| commit | 43ce18f8373f2027a3173f4b99c0bd6b2609bd7a (patch) | |
| tree | 2c784f98fae3d8193044cf4e2203d19323ee5b02 /ext/standard/basic_functions.stub.php | |
| parent | 41b096b392e551df51c80d29f6f30c163a0630ea (diff) | |
| download | php-git-43ce18f8373f2027a3173f4b99c0bd6b2609bd7a.tar.gz | |
Add proper count() parameter type
We can make this Countable|array now.
Diffstat (limited to 'ext/standard/basic_functions.stub.php')
| -rwxr-xr-x | ext/standard/basic_functions.stub.php | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/ext/standard/basic_functions.stub.php b/ext/standard/basic_functions.stub.php index eea47c664f..ec0e056dac 100755 --- a/ext/standard/basic_functions.stub.php +++ b/ext/standard/basic_functions.stub.php @@ -62,14 +62,10 @@ function krsort(array &$array, int $flags = SORT_REGULAR): bool {} function ksort(array &$array, int $flags = SORT_REGULAR): bool {} -/** @param Countable|array $var */ -function count($var, int $mode = COUNT_NORMAL): int {} +function count(Countable|array $var, int $mode = COUNT_NORMAL): int {} -/** - * @param Countable|array $var - * @alias count - */ -function sizeof($var, int $mode = COUNT_NORMAL): int {} +/** @alias count */ +function sizeof(Countable|array $var, int $mode = COUNT_NORMAL): int {} function natsort(array &$array): bool {} |
