New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Importing a trait and changing visibility is ignored #4516
Comments
Related: #3465 |
It's also impossible to ignore this error via baseline or |
Yeah, that's because when this problem is reported (when it's a real problem), it leads to PHP fatal error, so it makes sense it cannot be baselined. |
I guess you need to use |
That works. Thanks! |
Fixed: phpstan/phpstan-src@c524c4e |
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. |
Bug report
PHPStan reports an issue:
While this is allowed by PHP, see: https://3v4l.org/J3ged
Code snippet that reproduces the problem
https://phpstan.org/r/03b14d64-3e97-49bd-a994-3c22570ebde3
Expected output
No errors because this is allowed by PHP, see: https://3v4l.org/J3ged
The text was updated successfully, but these errors were encountered: