-
Notifications
You must be signed in to change notification settings - Fork 242
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
PHPStan enhancements #612
PHPStan enhancements #612
Conversation
It allows per-developer customisation (e.g. editor URL). This approach is officially suggested: https://phpstan.org/config-reference#config-file
Last commit in the repo is 4 months old, many new versions of PHPStan were released since then 😉.
is the PHP baseline as strict conversion of the existing neon baseline or are there new errors as well ? The conversion makes it impossible to determine that in the review. Also, does phpstan automatically detects the PHP format when using Also, regarding the phpstan.neon file, I'm not sure it makes sense to move to |
|
As our baseline is not big enough so that parsing the neon files becomes the botteneck of running the analysis, I would suggest keeping it in the default neon format to make things easier for contributors so that Even if we add composer scripts, this won't solve it for contributors that don't know about them and run the phpstan command they know. |
Regarding strict rules and bleeding edge, I'm not OK to just enable them with everything in the baseline. |
OK, I'll remove strict types and bleeding edge and will provide them in separate PRs with fixes. And will revert NEON format of the baseline 👍. |
7eaef75
to
96fbb07
Compare
@stof PHP format was introduced mostly because of NEON performance, but I pointed other argument in favour of it (in the commit's message) - it's possible to navigate from baseline to the file containing error in a single click in IDE. Nice little perk 😉. |
@Wirone then try to convince the phpstan maintainer to make the PHP format a first-class citizen for |
Details in commits' messages.
Strict rules and bleeding edge were enabled without any fixes because I need your feedback if you agree to enable them. If yes, I suggest merging this as-is and I can try to work on it in subsequent PR and shrink the baseline a little 🙂.Removed from this PR.