Skip to content

Commit 0d66907

Browse files
authored
Merge pull request #63 from rieschl/relax-param-type
Relax param type of `ArrayUtils::iteratorToArray`
2 parents 449c040 + 37b60b6 commit 0d66907

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ArrayUtils.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,8 @@ public static function inArray($needle, array $haystack, $strict = false)
222222
*
223223
* @template TKey
224224
* @template TValue
225-
* @param array<TKey, TValue>|Traversable<TKey, TValue> $iterator The array or Traversable object to convert
226-
* @param bool $recursive Recursively check all nested structures
225+
* @param iterable<TKey, TValue> $iterator The array or Traversable object to convert
226+
* @param bool $recursive Recursively check all nested structures
227227
* @throws Exception\InvalidArgumentException If $iterator is not an array or a Traversable object.
228228
* @return array<TKey, TValue>
229229
*/

0 commit comments

Comments
 (0)