Skip to content

Commit

Permalink
Documentation: Update PHPCompatibilityWP version recommendation to 7.2
Browse files Browse the repository at this point in the history
As of WordPress 6.6, released on 16 July 2024, WordPress no longer supports PHP 7.0 and 7.1

References:
https://make.wordpress.org/core/2024/04/08/dropping-support-for-php-7-1/
https://wordpress.org/news/2024/07/dorsey/
  • Loading branch information
johnjago authored Aug 6, 2024
1 parent cdb29b5 commit 9e729f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,13 +157,13 @@ The [PHPCompatibilityWP](https://github.com/PHPCompatibility/PHPCompatibilityWP)

Install either as a separate ruleset and run it separately against your code or add it to your custom ruleset, like so:
```xml
<config name="testVersion" value="7.0-"/>
<config name="testVersion" value="7.2-"/>
<rule ref="PHPCompatibilityWP">
<include-pattern>*\.php$</include-pattern>
</rule>
```

Whichever way you run it, do make sure you set the `testVersion` to run the sniffs against. The `testVersion` determines for which PHP versions you will receive compatibility information. The recommended setting for this at this moment is `7.0-` to support the same PHP versions as WordPress Core supports.
Whichever way you run it, do make sure you set the `testVersion` to run the sniffs against. The `testVersion` determines for which PHP versions you will receive compatibility information. The recommended setting for this at this moment is `7.2-` to support the same PHP versions as WordPress Core supports.

For more information about setting the `testVersion`, see:
* [PHPCompatibility: Sniffing your code for compatibility with specific PHP version(s)](https://github.com/PHPCompatibility/PHPCompatibility#sniffing-your-code-for-compatibility-with-specific-php-versions)
Expand Down

0 comments on commit 9e729f2

Please sign in to comment.