-
-
Notifications
You must be signed in to change notification settings - Fork 341
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
imp: install PHP-CS-Fixer locally, allowing us to run in locally #617
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense.
ccf5d94
to
514a7ce
Compare
I think the recommended way is to install it into a |
The shim is new maybe? I only learned of it from the recipe (symfony/recipes#1112) that was merged yesterday. |
This was the first I had heard of it. It seems like a good idea - is there some docs or mention of using this? And how it fits into best-practices? |
As you know, installing this kind of tools into a separate composer.json (ie: in However I'm not a big fan of having multiple This is something that can be easily fixed by using a .phar, which can be installed through a shim-version of the package. To me the given installation methods for PHP-CS-Fixer are "wrong", |
Hi @weaverryan @kbond, is installing the shim still okay? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works for me.
This does make a lot of sense - thanks Hugo! |
After opening #616, the CI showed me a lot of style issues in the PHP code:

I don't have PHP CS Fixer globally installed on my machine because that's a bad practice, and I don't want to fix those errors manually (the time is precious).
So, this PR adds PHP CS Fixer locally.