diff --git a/.github/workflows/reusable-qa-checks.yml b/.github/workflows/reusable-qa-checks.yml index 2722f76..026575e 100644 --- a/.github/workflows/reusable-qa-checks.yml +++ b/.github/workflows/reusable-qa-checks.yml @@ -68,11 +68,11 @@ jobs: strategy: matrix: - php: ['5.4', 'latest'] + php: ['7.2', 'latest'] phpcompat: ['stable'] include: - - php: '7.4' + - php: '8.2' phpcompat: 'dev-develop as 10.99.99' continue-on-error: ${{ matrix.phpcompat != 'stable' }} @@ -113,5 +113,4 @@ jobs: - name: Test the ruleset run: > vendor/bin/phpcs -ps ./Test/WPTest.php --standard=PHPCompatibilityWP - --exclude=PHPCompatibility.Upgrade.LowPHP --runtime-set testVersion 5.2- diff --git a/CHANGELOG.md b/CHANGELOG.md index ce06027..6e3f849 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,15 @@ 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/). +## [3.0.0-alpha3] - 2026-11-17 + +* The documentation has been updated to align with the recently released [PHPCompatibility 10.0.0-alpha3] version. +* Support for PHP < 7.2 has been (soft) dropped. +* Support for PHP_CodeSniffer 3.x has been (soft) dropped. +* Documentation update for WordPress 7.0. Thanks [@rodrigoprimo]! + +[10.0.0-alpha3]: https://github.com/PHPCompatibility/PHPCompatibility/releases/tag/10.0.0-alpha3 + ## [3.0.0-alpha2] - 2025-12-16 * Ruleset: Updated for improved compatibility with WordPress 6.5 and for compatibility with WordPress 6.8 and 6.9. Thanks [@rodrigoprimo]! @@ -94,6 +103,7 @@ Initial release of the PHPCompatibilityWP ruleset. [Composer PHPCS plugin]: https://github.com/PHPCSStandards/composer-installer/ +[3.0.0-alpha3]: https://github.com/PHPCompatibility/PHPCompatibilityWP/compare/3.0.0-alpha2...3.0.0-alpha3 [3.0.0-alpha2]: https://github.com/PHPCompatibility/PHPCompatibilityWP/compare/3.0.0-alpha1...3.0.0-alpha2 [3.0.0-alpha1]: https://github.com/PHPCompatibility/PHPCompatibilityWP/compare/2.1.8...3.0.0-alpha1 [2.1.8]: https://github.com/PHPCompatibility/PHPCompatibilityWP/compare/2.1.7...2.1.8 diff --git a/README.md b/README.md index c281f76..52184f1 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+. * [PHPCompatibilityParagonie] 2.0.0+. @@ -91,13 +91,6 @@ vendor/bin/phpcs -p . --standard=PHPCompatibilityWP --runtime-set testVersion 5. 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=PHPCompatibilityWP --extensions=php --runtime-set testVersion 5.6- -``` - ## License All code within the PHPCompatibility organisation is released under the GNU Lesser General Public License (LGPL). For more information, visit .