diff --git a/dictionaries/CallMap.php b/dictionaries/CallMap.php index 61e0a07c5..f125d82b5 100644 --- a/dictionaries/CallMap.php +++ b/dictionaries/CallMap.php @@ -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'], diff --git a/dictionaries/CallMap_historical.php b/dictionaries/CallMap_historical.php index 090c0ecd6..ae4ada068 100644 --- a/dictionaries/CallMap_historical.php +++ b/dictionaries/CallMap_historical.php @@ -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'],