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
There already are a few issues discussing using trait and class inheritance together but it seems to me none of them really fit my observation (I may be wrong) .
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.
BTW: Did you know that PHPStan now has a brand new website with a user guide, guide to writing analyser-friendly PHP code, and a guide to developing PHPStan extensions? Visit phpstan.org today!
lockbot
locked as resolved and limited conversation to collaborators
Jun 24, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
There already are a few issues discussing using trait and class inheritance together but it seems to me none of them really fit my observation (I may be wrong) .
I'm trying to override a trait method the way the official PHP documentation shows but PHPStan complains. Please see the example:
https://phpstan.org/r/3cd9314c-002d-4796-b9ce-4715c57650da
On 3v4l.org the code executes just fine. Any hints? Thank you.
The text was updated successfully, but these errors were encountered: