mirror of
https://github.com/danog/psalm.git
synced 2024-11-27 04:45:20 +01:00
Updated return type of iterator_count and iterator_apply functions to 0|positive-int
This commit is contained in:
parent
4080b0377c
commit
dc0e82f6bc
@ -6571,8 +6571,8 @@ return [
|
||||
'Iterator::next' => ['void'],
|
||||
'Iterator::rewind' => ['void'],
|
||||
'Iterator::valid' => ['bool'],
|
||||
'iterator_apply' => ['int', 'iterator'=>'Traversable', 'callback'=>'callable(mixed):bool', 'args='=>'array'],
|
||||
'iterator_count' => ['int', 'iterator'=>'Traversable'],
|
||||
'iterator_apply' => ['0|positive-int', 'iterator'=>'Traversable', 'callback'=>'callable(mixed):bool', 'args='=>'array'],
|
||||
'iterator_count' => ['0|positive-int', 'iterator'=>'Traversable'],
|
||||
'iterator_to_array' => ['array', 'iterator'=>'Traversable', 'preserve_keys='=>'bool'],
|
||||
'IteratorAggregate::getIterator' => ['Traversable'],
|
||||
'IteratorIterator::__construct' => ['void', 'it'=>'Traversable'],
|
||||
|
@ -12368,8 +12368,8 @@ return [
|
||||
'is_writable' => ['bool', 'filename'=>'string'],
|
||||
'is_writeable' => ['bool', 'filename'=>'string'],
|
||||
'isset' => ['bool', 'value'=>'mixed', '...rest='=>'mixed'],
|
||||
'iterator_apply' => ['int', 'iterator'=>'Traversable', 'callback'=>'callable(mixed):bool', 'args='=>'array'],
|
||||
'iterator_count' => ['int', 'iterator'=>'Traversable'],
|
||||
'iterator_apply' => ['0|positive-int', 'iterator'=>'Traversable', 'callback'=>'callable(mixed):bool', 'args='=>'array'],
|
||||
'iterator_count' => ['0|positive-int', 'iterator'=>'Traversable'],
|
||||
'iterator_to_array' => ['array', 'iterator'=>'Traversable', 'preserve_keys='=>'bool'],
|
||||
'java_last_exception_clear' => ['void'],
|
||||
'java_last_exception_get' => ['object'],
|
||||
|
Loading…
Reference in New Issue
Block a user