Skip to content

Commit 6a094a2

Browse files
authored
Fix: add generic key to input in iterable_to_array() (#46)
Thanks @simPod 👍
1 parent 7136af2 commit 6a094a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/iterable-functions.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function iterable_merge(iterable ...$args): iterable
4747
/**
4848
* Copy the iterable into an array.
4949
*
50-
* @param iterable<array-key, TValue> $iterable
50+
* @param iterable<TKey, TValue> $iterable
5151
* @param bool $preserveKeys [optional] Whether to use the iterator element keys as index.
5252
*
5353
* @return array<array-key, TValue>

0 commit comments

Comments
 (0)