Skip to content

Commit

Permalink
fix: improve typehint for toArray
Browse files Browse the repository at this point in the history
  • Loading branch information
SamMousa authored and nikic committed Mar 19, 2024
1 parent 09cd930 commit 3f031ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/iter.php
Original file line number Diff line number Diff line change
Expand Up @@ -1192,7 +1192,7 @@ function toIter(iterable $iterable): \Iterator {
*
* @param iterable<T> $iterable The iterable to convert to an array
*
* @return array<T>
* @return list<T>
*/
function toArray(iterable $iterable): array {
$array = [];
Expand Down

0 comments on commit 3f031ae

Please sign in to comment.