Return type is not properly recognised for an IteratorAggregate with a Generator #4607
-
Here's my reproduce case: https://phpstan.org/r/6bc5d8ba-4f4f-431b-8312-f0ac4d3de94b I tried to make it as simple as possible, but I cannot get the error to go away. I'm fairly positive everything is set up right. Is this a bug in phpstan? It does work when you change the return type to |
Beta Was this translation helpful? Give feedback.
Answered by
ondrejmirtes
Feb 26, 2021
Replies: 1 comment 1 reply
-
Hi, it was just a typo: https://phpstan.org/r/04c68fa3-a28a-4519-a752-9037aa0ab795 ( |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
pkruithof
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, it was just a typo: https://phpstan.org/r/04c68fa3-a28a-4519-a752-9037aa0ab795 (
@returns
vs.@return
).