-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[RFC] static analysis tools #36164
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
Comments
Look for similar issues, this has been discussed in the past. |
@vladyslavstartsev Did you find the relevant issues? I couldn't really. I'm wanted to open a similar RFC for another framework and I'm looking for reasons people do and don't include SA in their projects. |
See e.g. #25459 |
Thanks so much for the reference! If I understand correctly, this was all discussed when PHPStan didn't yet have the baseline feature. So, at that time all existing reported problems would need to be fixed before PHPStan could be used in CI. This is no longer necessary. It could be done more gradually and manageable now. Also, the world hasn't stood still. Because supported for older PHP versions has been dropped, there's a lot less risk of changes breaking BC. And regarding the argument 'the current code is fine': if that is the case, it wouldn't be a problem to assert that, right? |
Add phpstan and psalm to the project.
This will add internal code and public api strictness.
Since they (SA tools) support baselines (the file with all of old errors) it will be easy to start with them and fix issues along the way of future development.
The text was updated successfully, but these errors were encountered: