From 1c295b5534f101c60dda3fb24e67144df89998f2 Mon Sep 17 00:00:00 2001 From: jrfnl Date: Sun, 18 Oct 2026 21:56:18 +0200 Subject: [PATCH] Version 2.0.0-alpha2 / Update for PHPCompatibility 10.0.0-alpha3 This update accounts for the following changes: * Ruleset: **_No ruleset updates needed._** * Readme: - Updated the minimum PHP and PHPCS requirements. - Remove advise only relevant for PHPCS 3.x. * CI: - Updated for the changed minimum PHP and PHPCS requirements in alpha3. - Continue testing against `dev-develop`. - Remove sniff exclusion which is no longer needed as the sniff has been removed. --- .github/workflows/reusable-qa-checks.yml | 6 ++---- CHANGELOG.md | 7 +++++++ README.md | 11 ++--------- 3 files changed, 11 insertions(+), 13 deletions(-) diff --git a/.github/workflows/reusable-qa-checks.yml b/.github/workflows/reusable-qa-checks.yml index 1a37086..640df8d 100644 --- a/.github/workflows/reusable-qa-checks.yml +++ b/.github/workflows/reusable-qa-checks.yml @@ -69,11 +69,11 @@ jobs: strategy: matrix: - php: ['5.4', 'latest'] + php: ['7.2', 'latest'] phpcompat: ['stable'] include: - - php: '7.4' + - php: '8.1' phpcompat: 'dev-develop' continue-on-error: ${{ matrix.phpcompat != 'stable' }} @@ -114,13 +114,11 @@ jobs: - name: Test the ruleset run: > vendor/bin/phpcs -ps ./Test/PasswordCompatTest.php --standard=PHPCompatibilityPasswordCompat - --exclude=PHPCompatibility.Upgrade.LowPHP --runtime-set testVersion 5.4- # Check that the ruleset doesn't throw unnecessary errors for the compat library itself. - name: Test running against the polyfills run: > vendor/bin/phpcs -ps ./vendor/ircmaxell/ --standard=PHPCompatibilityPasswordCompat - --exclude=PHPCompatibility.Upgrade.LowPHP --ignore=/password-compat/test/* --runtime-set testVersion 5.4- diff --git a/CHANGELOG.md b/CHANGELOG.md index ee1ad3c..a5580d9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file. This projects adheres to [Semantic Versioning](https://semver.org/) and [Keep a CHANGELOG](https://keepachangelog.com/). +## [2.0.0-alpha2] - 2026-11-17 + +* The documentation has been updated to align with the recently released [10.0.0-alpha3](https://github.com/PHPCompatibility/PHPCompatibility/releases/tag/10.0.0-alpha3) version. +* Support for PHP < 7.2 has been (soft) dropped. +* Support for PHP_CodeSniffer 3.x has been (soft) dropped. + ## [2.0.0-alpha1] - 2025-10-21 * Composer: The PHPCompatibility dependency has been updated to the recently released 10.0.0-alpha1 version. @@ -66,6 +72,7 @@ Initial release of the PHPCompatibilityPasswordCompat ruleset. [Composer PHPCS plugin]: https://github.com/PHPCSStandards/composer-installer/ +[2.0.0-alpha2]: https://github.com/PHPCompatibility/PHPCompatibilityPasswordCompat/compare/2.0.0-alpha1...2.0.0-alpha2 [2.0.0-alpha1]: https://github.com/PHPCompatibility/PHPCompatibilityPasswordCompat/compare/1.0.6...2.0.0-alpha1 [1.0.6]: https://github.com/PHPCompatibility/PHPCompatibilityPasswordCompat/compare/1.0.5...1.0.6 [1.0.5]: https://github.com/PHPCompatibility/PHPCompatibilityPasswordCompat/compare/1.0.4...1.0.5 diff --git a/README.md b/README.md index 5167466..4f1ace0 100644 --- a/README.md +++ b/README.md @@ -26,8 +26,8 @@ If you use PHPCompatibility, please fund this work by setting up a monthly contr ## Requirements -* PHP > 5.4 -* [PHP_CodeSniffer] >= 3.13.3. +* PHP > 7.2 +* [PHP_CodeSniffer] >= 4.0.2. Use the latest stable release of PHP_CodeSniffer for the best results. * [PHPCompatibility] 10.0.0+. @@ -85,13 +85,6 @@ vendor/bin/phpcs -p . --standard=PHPCompatibilityPasswordCompat --runtime-set te For more detailed information about setting the `testVersion`, see the README of the generic [PHPCompatibility][PHPCompatibility-testVersion] standard. -### Testing PHP files only - -By default PHP_CodeSniffer < 4.0 will analyse PHP, JavaScript and CSS files. As the PHPCompatibility sniffs only target PHP code, you can make the run slightly faster by telling PHP_CodeSniffer to only check PHP files, like so: -```bash -vendor/bin/phpcs -p . --standard=PHPCompatibilityPasswordCompat --extensions=php --runtime-set testVersion 5.3- -``` - ## License All code within the PHPCompatibility organisation is released under the GNU Lesser General Public License (LGPL). For more information, visit .