Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .github/workflows/reusable-qa-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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' }}
Expand Down Expand Up @@ -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-
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]!
Expand Down Expand Up @@ -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
Expand Down
11 changes: 2 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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+.
Expand Down Expand Up @@ -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 <https://www.gnu.org/licenses/lgpl-3.0.html>.
Expand Down
Loading