You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When passing an iterator to iterator_to_array, phpstan produces an error that it expects a traversable as first parameter.
PHP documentation explicitely says that iterable is a build-time alias for array| Traversable (see https://www.php.net/manual/en/language.types.iterable.php).
Bug report
When passing an iterator to
iterator_to_array
, phpstan produces an error that it expects atraversable
as first parameter.PHP documentation explicitely says that
iterable
is a build-time alias forarray| Traversable
(see https://www.php.net/manual/en/language.types.iterable.php).Code snippet that reproduces the problem
https://phpstan.org/r/cfe4f0bd-63f9-424a-8e68-912c56694c96
Expected output
Should not generate an error.
Did PHPStan help you today? Did it make you happy in any way?
No response
The text was updated successfully, but these errors were encountered: