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
2 changes: 1 addition & 1 deletion .github/workflows/reusable-validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
strategy:
fail-fast: true
matrix:
php: ['5.4', 'latest']
php: ['7.2', 'latest']

name: PHP ${{ matrix.php }}
runs-on: ubuntu-latest
Expand Down
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ 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 [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.

[10.0.0-alpha3]: https://github.com/PHPCompatibility/PHPCompatibility/releases/tag/10.0.0-alpha3

## [2.0.0-alpha1] - 2025-10-22

* Composer: All PHPCompatibility dependencies have been updated to the recently released PHPCompatibility 10.0.0-alpha1 based versions.
Expand Down Expand Up @@ -62,6 +70,7 @@ Initial release containing the PHPCompatibility, PHPCompatibilityJoomla and PHPC

[Composer PHPCS plugin]: https://github.com/PHPCSStandards/composer-installer/

[2.0.0-alpha2]: https://github.com/PHPCompatibility/PHPCompatibilityAll/compare/2.0.0-alpha1...2.0.0-alpha2
[2.0.0-alpha1]: https://github.com/PHPCompatibility/PHPCompatibilityAll/compare/1.1.5...2.0.0-alpha1
[1.1.5]: https://github.com/PHPCompatibility/PHPCompatibilityAll/compare/1.1.4...1.1.5
[1.1.4]: https://github.com/PHPCompatibility/PHPCompatibilityAll/compare/1.1.3...1.1.4
Expand Down
11 changes: 2 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,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.
* [Composer]

Expand Down Expand Up @@ -110,13 +110,6 @@ vendor/bin/phpcs -p . --standard=PHPCompatibilityParagonieSodiumCompat,PHPCompat
For more detailed information, see the README of the main [PHPCompatibility][PHPCompatibility-testVersion] standard.


### Testing PHP files only

By default PHP_CodeSniffer 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=PHPCompatibilitySymfonyPolyfillPHP56 --extensions=php --runtime-set testVersion 5.3-
```

## License

All code within the PHPCompatibility organisation is released under the GNU Lesser General Public License (LGPL).
Expand Down
Loading