Skip to content

Commit 9839cbd

Browse files
authored
Documentation: Update PHPCompatibilityWP version recommendation to 7.2 (WordPress#2471)
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/
1 parent 7d15d40 commit 9839cbd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,13 +157,13 @@ The [PHPCompatibilityWP](https://github.com/PHPCompatibility/PHPCompatibilityWP)
157157

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

166-
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.
166+
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.
167167

168168
For more information about setting the `testVersion`, see:
169169
* [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)

0 commit comments

Comments
 (0)