-
Notifications
You must be signed in to change notification settings - Fork 56
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
Composer: allow for the 1.0.0 version of the Composer PHPCS plugin #306
Composer: allow for the 1.0.0 version of the Composer PHPCS plugin #306
Conversation
The build failure is unrelated to this PR, see #307 |
I don't understand. Whether they |
It's not about Say you would merge & release this fix today. Along the same lines, if a user of the Doctrine standard would have a requirement for the Allowing for a wide range of versions of the plugin prevents these kind of issues and allows people time to either update their own version constraints or to remove the requirement for the plugin from their own package in favour of inheriting it from this package (which you could also consider, i.e. remove the requirement in favour of inheriting it from the Slevomat standard). |
I understand that a user having
But I guess it's not important. |
The Composer PHPCS plugin has released its 1.0.0 version. 🎉 Important: I've _widened_ the version constraints for the plugin, instead of _bumping_ it. The reason for this is to prevent conflicts with end-user projects/other external PHPCS standards which may also require(-dev) the plugin, but may not (yet) have updated _their_ constraints for the plugin. If the version would have been bumped instead of widened, those users would get an unsolvable conflict during the `composer install` run (unless they `require-dev` the plugin for the root project, but then, that's exactly what we _don't_ want them to do as external standards managing the versions of the plugins should be more reliable). Ref: https://github.com/PHPCSStandards/composer-installer/releases/tag/v1.0.0
dc4f95a
to
320ecf4
Compare
Rebased without changes after the merge of #307 to get a passing build. |
I think, we can consider dropping older version of the plugin on the 12.x branch. Or even drop the dependency entirely: why should a coding standard bother how it is installed? But this is probably not the place for this discussion. |
As I don't follow this repo - here is my input for that discussion: The plugin saves a user from potentially having to make error-prone manual changes to the PHPCS configuration, so is on the one hand a convenience a standard provides to end-users and on the other hand, saves maintainers having to deal with countless support questions from end-users about how to register the standard, which standards to register etc. Why error-prone ? Because external standards have to be registered with PHPCS using Having the plugin in place automates this away as the plugin will do the discovery of available standards and registers them correctly. |
Okay, if that plugin is a de-facto standard, let's keep everything as it is. I trust you on this one. 🙂 |
Thanks @jrfnl ! |
Argh, this should have targeted 11.1.x, why do I always notice that kind of issue after merging 🤦 ? |
💡 luckily there is nothing worth releasing to our users since 11.0.x, so I can just merge this up into 11.1.x, then release 11.1.0, it will do the trick. |
Merge up PR: #308 |
The Composer PHPCS plugin has released its 1.0.0 version. 🎉
Important:
I've widened the version constraints for the plugin, instead of bumping it.
The reason for this is to prevent conflicts with end-user projects/other external PHPCS standards which may also require(-dev) the plugin, but may not (yet) have updated their constraints for the plugin. If the version would have been bumped instead of widened, those users would get an unsolvable conflict during the
composer install
run (unless theyrequire-dev
the plugin for the root project, but then, that's exactly what we don't want them to do as external standards managing the versions of the plugins should be more reliable).Ref: https://github.com/PHPCSStandards/composer-installer/releases/tag/v1.0.0