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
false positive on private trait method #3637
Comments
Yeah, it doesn't really make sense to report unused trait methods and properties in the context of each class they're used. However it would make sense to report them without class context if they aren't used in ANY class that uses the trait. |
This is hard as it has to work with parallelized processing. |
Fixed: phpstan/phpstan-src@5958c29 |
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: 0.12.33, bleeding edge
If a private trait method is not used in some class phpstan raises a warning that the method is not used even if it's used in other class
Code snippet that reproduces the problem
https://phpstan.org/r/72f07c19-65b2-4ab6-a12b-d42cd37cd60f
Expected output
no error
The text was updated successfully, but these errors were encountered: