diff --git a/src/iterable-functions.php b/src/iterable-functions.php index df51b9d..c481298 100644 --- a/src/iterable-functions.php +++ b/src/iterable-functions.php @@ -47,9 +47,12 @@ function iterable_to_array(iterable $iterable, bool $preserveKeys = true): array /** * If the iterable is not instance of Traversable, it is an array => convert it to an ArrayIterator. * - * @param iterable $iterable + * @param iterable $iterable + * + * @return Traversable * - * @return Traversable + * @template TKey + * @template TValue */ function iterable_to_traversable(iterable $iterable): Traversable {