-
Notifications
You must be signed in to change notification settings - Fork 735
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
Use static code analysis #1943
Comments
Do you plan to have it enabled as part of CI in the future? Are there false positives sometimes? |
Yes absolutely, having it enabled in the CI would be benefit IMO.
Yes, sometimes. But they can be skipped by |
In general I'm on board about making the code base more strict especially for the scenarios where the type is clear. Lets see if it will force us to do some breaking changes but often these are actually bugs we fix ;-) |
I'm 👍 on being more strict on types. |
Maybe 8 is a good option for this. Time to branch off 7.x? |
I started working on using PHPStan to detect potential wrong code.
Many PRs I opened recently were related to this analysis.
This can be tracked here: https://github.com/deguif/Elastica/actions?query=branch%3Aphpstan+
Here's the current
35
remaining errors:The text was updated successfully, but these errors were encountered: