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
Final annotation forces now excludes_analyse #3427
Comments
This bug report is missing a link to reproduction on phpstan.org. |
This was never supposed to be reported. Fixed: phpstan/phpstan-src@3b2c806 |
Wow. I felt embarrassed reporting this and just excluded the file from the analysis... Glad this is fixed 😅 I suppose this should be reported on some high level. Usually It'd be perfect to distinguish between real final class extension and |
Reporting extending |
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
We have now several classes we extend that are now failing in PHPStan
And apparently, one cannot ignoreErrors that one, but must use excludes_analyse here.
Code snippet that reproduces the problem
and
Resulting in
Expected output
We would like to ignore this annotation for the time being until we can upgrade away from it.
At the same time we don't want to excludes_analyse the whole class as everything else in there still would be nice to have analyzed.
Is there a way we can add a softer way to exclude this without throwing out the whole file?
Like some config flag?
The text was updated successfully, but these errors were encountered: