New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Narrow subtype for RecursiveIteratorIterator $iterable param #3425
Labels
Milestone
Comments
Implemented: phpstan/phpstan-src@d28b61b |
This was referenced Mar 9, 2021
Closed
Bump phpstan/phpstan from 0.12.78 to 0.12.81 in /composer/helpers/v1
dependabot/dependabot-core#3248
Merged
Bump phpstan/phpstan from 0.12.78 to 0.12.81 in /composer/helpers/v2
dependabot/dependabot-core#3249
Merged
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
https://phpstan.org/r/ec7fe70c-0127-45a4-9f83-f9d8bd63304f
This code crashes https://3v4l.org/evDe2 because
RecursiveIteratorIterator
's templateT
in stub is of\Traversable
and not of\RecursiveIterator|\IteratorAggregate
as specified in docs https://www.php.net/manual/en/recursiveiteratoriterator.construct.php(crosslink phpstan/phpstan-src#228)
The text was updated successfully, but these errors were encountered: