Skip to content

Drop support for PHP 5.3 and PHPCS < 2.6.0#956

Merged
wimg merged 36 commits intodevelopfrom
feature/10.0.0/drop-low-phpcs-and-php-5.3-support
Feb 21, 2020
Merged

Drop support for PHP 5.3 and PHPCS < 2.6.0#956
wimg merged 36 commits intodevelopfrom
feature/10.0.0/drop-low-phpcs-and-php-5.3-support

Conversation

@jrfnl
Copy link
Copy Markdown
Member

@jrfnl jrfnl commented Dec 27, 2019

This:

  • Updates the minimum requirements in composer.json, the README and the CONTRIBUTING docs.
  • Updates the Travis script to no longer test against PHP 5.3, nor PHPCS < 2.6.0.
  • Updates the LowPHPCS and LowPHP sniffs to reflect the new minimum and recommended PHP and PHPCS versions.
  • Updates the PHPCS ruleset to now longer check the code of PHPCompatibility for cross-version compatibility with PHP 5.3.

Includes removing any and all work-arounds for supporting PHPCS < 2.6.0 and PHP < 5.4 which I could find in the codebase.

See the individual commits for full details.

Closes #835

@jrfnl jrfnl added this to the 10.0.0 milestone Dec 27, 2019
@jrfnl jrfnl requested a review from wimg December 27, 2019 11:01
@jrfnl jrfnl force-pushed the feature/10.0.0/drop-low-phpcs-and-php-5.3-support branch from ec3d85b to 1d4d979 Compare December 27, 2019 11:33
This:
* Updates the minimum requirements in `composer.json`, the `README` and the `CONTRIBUTING` docs.
* Updates the Travis script to no longer test against PHP 5.3, nor PHPCS < 2.6.0.
* Updates the `LowPHPCS` and `LowPHP` sniffs to reflect the new minimum and recommended PHP and PHPCS versions.
* Updates the PHPCS ruleset to now longer check the code of PHPCompatibility for cross-version compatibility with PHP 5.3.
@jrfnl jrfnl changed the title Drop support for PHP 5.3 and PHPCS 2.6.0 Drop support for PHP 5.3 and PHPCS < 2.6.0 Dec 28, 2019
jrfnl and others added 21 commits December 28, 2019 17:36
The `T_POW` token was back-filled in PHPCS 2.4.0.
The `T_ANON_CLASS` token was added in PHPCS 2.4.0.
The `T_RETURN_TYPE` token was added in PHPCS 2.4.0 and deprecated in PHPCS 3.3.0.

It is expected to be removed in PHPCS 4.0.0.
We can now simplify the sniff to just check for the `T_ANON_CLASS` token.
The `T_OPEN_USE_GROUP` and `T_CLOSE_USE_GROUP` tokens were introduced in PHPCS 2.6.0, so no more need for work arounds.
@jrfnl jrfnl force-pushed the feature/10.0.0/drop-low-phpcs-and-php-5.3-support branch from 1d4d979 to 93553c5 Compare December 28, 2019 16:37
@wimg wimg merged commit ffdde4a into develop Feb 21, 2020
@wimg wimg deleted the feature/10.0.0/drop-low-phpcs-and-php-5.3-support branch February 21, 2020 23:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Proposal: drop support for PHP 5.3 and PHPCS < 2.6.0 when PHP 7.4 is released

2 participants