-
-
Notifications
You must be signed in to change notification settings - Fork 37
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
Proposal for limiting supported versions #221
Comments
This sounds like a sensible change to me. For similar reasons (and considering the stability of this package), I would also be comfortable with adjusting the minimum supported PHP to 8.2 (https://www.php.net/supported-versions), and Composer to 2.6. Users who still require a version which works on older systems can use already-released versions of this package, and Composer is well placed to resolve this automatically. Releasing this change as a minor version makes sense given the explanations above. |
In my opinion, upping the minimum supported PHP version to anything beyond PHP 7.2 is not up for discussion. This plugin hooks into PHP_CodeSniffer and is used by lots of external standards for PHP_CodeSniffer. If the minimum PHP version for this plugin would no longer be in line with the minimum PHP version supported by PHP_CodeSniffer, it would mean that all users, including external standards, would either be limited to using the 1.0.x version or would need to up their minimum supported PHP version to 8.2. I expect that the net effect of that would be that there will be an expectation that both the 1.0.x branch as well as 1.1+ branch would continue to be maintained, especially for essential bug fixes and for fixes related to new PHP versions, and I, for one, have no intention to start maintaining two branches for this plugin. |
I am in favor of trimming the tree. I agree with these perspectives:
and
Should things be documented somewhere for future reference? |
@Potherca I'd been thinking about how to document things like that (also for PHPCS and other projects). While not an official convention, how about adding a Alternatively, it could probably be added to the On that note: the Opinions ? |
Relevant for this issue: Packagist will drop support for Composer 1.x per August 1st 2025. https://blog.packagist.com/shutting-down-packagist-org-support-for-composer-1-x/ |
At this time, the plugin is compatible with:
v0.7.0
)v0.7.0
)v0.4.0
)These are very wide ranges and is a compatibility span of more than a decade for most of these.
With this ticket, I'd like to open the discussion for limiting the range of supported versions a little.
Proposal
I would like to propose to drop support for:
Planning
I propose that these changes be made once PHP_CodeSniffer 4.0 has been released (which also drops support for PHP < 7.2).
I also propose for these changes to be released as version 1.1.0 of the plugin.
Consequences
As users of this plugin will, by definition, be using Composer, we would not be leaving users behind as Composer will handle the version negotiation and can still install the 1.0.x version if necessary.
Based on the PHP version stats available via Packagist, the PHP version drop would affect 1.5% of the users of this plugin.
While not necessarily a precise representation of the users of this plugin, based on the PHP_CodeSniffer version stats available via Packagist, the PHP_CodeSniffer version drop would affect less than 0.2% of all potential users of this plugin.
Opinions ?
The text was updated successfully, but these errors were encountered: