rectorphp / type-perfect

Next level type declaration check PHPStan rules
https://getrector.com/blog/introducing-type-perfect-for-extra-safety
MIT License
74 stars 4 forks source link

Added failling test #3

Closed staabm closed 4 months ago

staabm commented 4 months ago

no errors should be emitted when calling a instance of the same class to a method expecting self

staabm commented 4 months ago

(I have no idea how this can be fixed with the current logic)

TomasVotruba commented 4 months ago

cc @samsonasik Could you check this one?

samsonasik commented 4 months ago

I will try 👍

samsonasik commented 4 months ago

@staabm I cherry-picked your commit at PR: