Skip to content

Commit 3f031ae

Browse files
SamMousanikic
authored andcommitted
fix: improve typehint for toArray
1 parent 09cd930 commit 3f031ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/iter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1192,7 +1192,7 @@ function toIter(iterable $iterable): \Iterator {
11921192
*
11931193
* @param iterable<T> $iterable The iterable to convert to an array
11941194
*
1195-
* @return array<T>
1195+
* @return list<T>
11961196
*/
11971197
function toArray(iterable $iterable): array {
11981198
$array = [];

0 commit comments

Comments
 (0)