Skip to content

PHPStan and psalm doesn't handle iterable templates the same way #5484

Discussion options

You must be logged in to vote

You can get rid of this problem if you specify the generic types of \IteratorAggregate and other extended interfaces: https://phpstan.org/r/aa5bc715-e1ad-460c-9f39-1b0c09546f47

Neither tool should have a problem with that.

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
7 replies
@VincentLanglet
Comment options

@orklah
Comment options

@VincentLanglet
Comment options

@ondrejmirtes
Comment options

@VincentLanglet
Comment options

Answer selected by VincentLanglet
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Support
Labels
None yet
4 participants