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
Return type of method ... should be compatible with return type of method ... thrown when using traits and return type self (with strict rules and bleeding edge)
#10166
Bug report
Function in trait with return type
self
is treated as a function with return type being the trait instead of the class where this trait is being usedCode snippet that reproduces the problem
https://phpstan.org/r/7a01f18e-cae1-44bc-809b-68c392afce05
Expected output
No error
Did PHPStan help you today? Did it make you happy in any way?
It helps me every day! :)
The text was updated successfully, but these errors were encountered: