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
You should \PHPStan\dumpType() the types in question and then you should check how the accepts() method of the involved type behaves and what needs to be fixed.
The rule in question is \PHPStan\Rules\Methods\ReturnTypeRule.
Bug report
Hi @ondrejmirtes, I'm getting an error that I don't understand at all
https://phpstan.org/r/1aa2d004-995a-4677-973e-17068b828291
I don't know if it's related but I can also produce another weird error with
https://phpstan.org/r/c74a81ae-f8ab-48e1-8bc4-62a2c02e8613
"expects T of Foo, got T of Foo".
The text was updated successfully, but these errors were encountered: