Open othercorey opened 1 year ago
I found these snippets:
Traversable|array
is precisely iterable
; we should just collapse the native type too.
Does this issue report also cover the following case?
https://psalm.dev/r/8521cc0da1
I thought that might be the case when iterator_to_array()
is internally defined with an argument of Traversable|array
, and Psalm does not recognize this to be equivalent to iterable
?
I found these snippets:
https://psalm.dev/r/00b98216f3
It looks like
Traversable|array
is collapsed toiterable
but then compared against the originalTraversable|array
type.