Skip to content
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

[make:*] Use a PHP-CS-Fixer shim rather than an external PHAR #1575

Merged
merged 7 commits into from
Sep 25, 2024

Conversation

theofidry
Copy link
Contributor

This PR proposes to leverage the PHP-CS-Fixer shim package, which is the Composer package shipping the scoped PHAR, rather than managing the PHAR directly.

IMO it is better because on the maintainer side it is a package like usual and you do not have the downside of polluting your project.

There is however the downside still that a project could use a shim with an incompatible version... And this may not be desired. In which case simply ignore this PR! :)

@jrushlow
Copy link
Collaborator

Thank you @theofidry - I didn't realize phpcsfixer had created a shim since we introduced this feature. I'm definitely all for it as it will save me from having to maintain the phar versions periodically.

I'll need to do some toying around with this locally before we merge to make sure we are on the up and up.

@jrushlow jrushlow added Feature New Feature Status: Needs Review Needs to be reviewed labels Jul 31, 2024
@jrushlow jrushlow self-assigned this Jul 31, 2024
@jrushlow jrushlow changed the title build: Use a PHP-CS-Fixer shim rather than an external PHAR [make:*] Use a PHP-CS-Fixer shim rather than an external PHAR Sep 13, 2024
@jrushlow jrushlow added Status: Reviewed Has been reviewed by a maintainer and removed Status: Needs Review Needs to be reviewed labels Sep 13, 2024
@jrushlow jrushlow added this to the v1.62.0 milestone Sep 13, 2024
Copy link
Collaborator

@jrushlow jrushlow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @theofidry! This will give the user the ability to use an up to date version of PHP-CS-Fixer without having to wait around on maintainers to update the phar manually. Win Win...

@jrushlow jrushlow merged commit 4735ff1 into symfony:main Sep 25, 2024
9 checks passed
@jrushlow jrushlow mentioned this pull request Sep 30, 2024
@theofidry theofidry deleted the build/php-cs-fixer-shim branch October 17, 2024 10:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New Feature Status: Reviewed Has been reviewed by a maintainer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants