-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
DX: PHPStan improvements #6868
DX: PHPStan improvements #6868
Commits on May 6, 2023
-
Configuration menu - View commit details
-
Copy full SHA for fe312f7 - Browse repository at this point
Copy the full SHA fe312f7View commit details -
Change default PHPStan config file
Make `phpstan.neon` ignored by Git and allow people override default config (helpful especially for `editorUrl` and `parallel`). https://phpstan.org/config-reference#config-file
Configuration menu - View commit details
-
Copy full SHA for 9329d6f - Browse repository at this point
Copy the full SHA 9329d6fView commit details -
Enable reporting of unmatched errors
This will allow us to keep track of `ignoreErrors` and do not let outdated ignore rules be kept there.
Configuration menu - View commit details
-
Copy full SHA for a8d9f8d - Browse repository at this point
Copy the full SHA a8d9f8dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7de0932 - Browse repository at this point
Copy the full SHA 7de0932View commit details -
Fix some "no value type specified in iterable type" errors
Introduce PHPStan type aliases to re-use array shape within single file.
Configuration menu - View commit details
-
Copy full SHA for d46b116 - Browse repository at this point
Copy the full SHA d46b116View commit details -
Use actual baseline file instead of fixed count of errors
With explicit baseline file we know exactly where errors are it's easier to fix them. Also, with previous approach it was possible to fix N issue and introduce N other issues at the same time and PHPStan wouldn't complain. Now, it will report unmatched (fixed) errors and newly introduced ones.
Configuration menu - View commit details
-
Copy full SHA for b3f443f - Browse repository at this point
Copy the full SHA b3f443fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9d3c72e - Browse repository at this point
Copy the full SHA 9d3c72eView commit details -
Configuration menu - View commit details
-
Copy full SHA for ea05752 - Browse repository at this point
Copy the full SHA ea05752View commit details -
Use redundant array shape instead of PHPStan alias + @todo for later
Let's do not pretend there's some kind of more sophisticated type, use array shape in all places. In the future it should be replaced with some kind of DTO.
Configuration menu - View commit details
-
Copy full SHA for a5b52a7 - Browse repository at this point
Copy the full SHA a5b52a7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7ae3424 - Browse repository at this point
Copy the full SHA 7ae3424View commit details -
Update tests/Console/ConfigurationResolverTest.php
Reuse path stored in variable instead concatenating the same values again. Co-authored-by: Dariusz Rumiński <dariusz.ruminski@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 4996ba1 - Browse repository at this point
Copy the full SHA 4996ba1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 17f5f70 - Browse repository at this point
Copy the full SHA 17f5f70View commit details