Skip to content

Commit bf6181e

Browse files
staabmondrejmirtes
authored andcommitted
use positive-int in iterator_count() / iterator_apply()
1 parent ea05e90 commit bf6181e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

resources/functionMap.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5663,8 +5663,8 @@
56635663
'Iterator::next' => ['void'],
56645664
'Iterator::rewind' => ['void'],
56655665
'Iterator::valid' => ['bool'],
5666-
'iterator_apply' => ['int', 'iterator'=>'Traversable', 'function'=>'callable', 'params='=>'array'],
5667-
'iterator_count' => ['int', 'iterator'=>'Traversable'],
5666+
'iterator_apply' => ['0|positive-int', 'iterator'=>'Traversable', 'function'=>'callable', 'params='=>'array'],
5667+
'iterator_count' => ['0|positive-int', 'iterator'=>'Traversable'],
56685668
'iterator_to_array' => ['array', 'iterator'=>'Traversable', 'use_keys='=>'bool'],
56695669
'IteratorAggregate::getIterator' => ['Traversable'],
56705670
'IteratorIterator::__construct' => ['void', 'iterator'=>'Traversable'],

0 commit comments

Comments
 (0)