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
Psalm output (using commit eb973ab):
ERROR: InvalidReturnType - 4:12 - No return statements were found for method generator but return type 'Iterator<int, string>' was expected
INFO: Trace - 13:30 - $iterator: NoRewindIterator<int, string>
Activity
psalm-github-bot commentedon Sep 2, 2021
I found these snippets:
https://psalm.dev/r/a7edd80625
orklah commentedon Sep 2, 2021
It seems to work when we push an Iterator instead of a Generator: https://psalm.dev/r/b8a3eaff57
psalm-github-bot commentedon Sep 2, 2021
I found these snippets:
https://psalm.dev/r/b8a3eaff57
orklah commentedon Sep 2, 2021
The stub declare it accepts an
Iterator
soGenerator
should be accepted: https://3v4l.org/lqr5Dweirdan commentedon Sep 2, 2021
Reproducible with user-defined classes as well: https://psalm.dev/r/36a0f142e0
psalm-github-bot commentedon Sep 2, 2021
I found these snippets:
https://psalm.dev/r/36a0f142e0