@@ -17,9 +17,7 @@ |
||
17 | 17 | /** |
18 | 18 | * Make an iterator that applies $strategy to every entry in this iterable |
19 | 19 | * |
20 | - * @param null|string|\Closure $strategy |
|
21 | - * @param array|string|\Iterator $iterable |
|
22 | - * @param array|string|\Iterator $iterable2 |
|
20 | + * @param \Closure $strategy |
|
23 | 21 | * @return Itertools\lib\MapIterator |
24 | 22 | * |
25 | 23 | * @see Itertools\lib\Traits\MapTrait::map |
@@ -17,8 +17,6 @@ |
||
17 | 17 | /** |
18 | 18 | * Returns an iterator where one or more iterables are zipped together |
19 | 19 | * |
20 | - * @param array|string|\Iterator $iterable |
|
21 | - * @param array|string|\Iterator $iterable2 |
|
22 | 20 | * @return Itertools\lib\ZipIterator |
23 | 21 | * |
24 | 22 | * @see Itertools\lib\Traits\ZipTrait::zip |
@@ -36,8 +36,6 @@ |
||
36 | 36 | * 2.5 3.5 4.5 |
37 | 37 | * |
38 | 38 | * @param null|string|\Closure $strategy |
39 | - * @param array|string|\Iterator $iterable |
|
40 | - * @param array|string|\Iterator $iterable2 |
|
41 | 39 | * @return MapIterator |
42 | 40 | */ |
43 | 41 | public function map($strategy /*, $iterable, $iterable2, ... */) |
@@ -23,8 +23,6 @@ |
||
23 | 23 | * > zip([1, 2, 3], ['a', 'b', 'c']) |
24 | 24 | * [1, 'a'] [2, 'b'] [3, 'c'] |
25 | 25 | * |
26 | - * @param array|string|\Iterator $iterable |
|
27 | - * @param array|string|\Iterator $iterable2 |
|
28 | 26 | * @return ZipIterator |
29 | 27 | */ |
30 | 28 | public function zip(/* $iterable, $iterable2, ... */) |
@@ -17,7 +17,7 @@ |
||
17 | 17 | |
18 | 18 | public function __construct() |
19 | 19 | { |
20 | - parent::__construct(\MultipleIterator::MIT_NEED_ALL | \MultipleIterator::MIT_KEYS_NUMERIC); |
|
20 | + parent::__construct(\MultipleIterator::MIT_NEED_ALL|\MultipleIterator::MIT_KEYS_NUMERIC); |
|
21 | 21 | foreach (func_get_args() as $iterable) { |
22 | 22 | if (!$iterable instanceof \Iterator) { |
23 | 23 | throw new \InvalidArgumentException(sprintf('Not all arguments are iterators')); |