Skip to content

Commit 5e5327a

Browse files
authored
Update minimum supported PHP version (#15)
Update minimum supported PHP version
2 parents 1737c64 + a5c771f commit 5e5327a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

PHPCompatibilityWP/ruleset.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<!--
66
The WordPress minimum PHP requirement was 5.2.4 up to WP 5.1.
7-
As of WP 5.2, the new minimum PHP requirement is PHP 5.6.
7+
As of WP 5.2, the new minimum PHP requirement is PHP 5.6.20.
88
Add the following in your project PHP_CodeSniffer ruleset to enforce this:
99
<config name="testVersion" value="5.6-"/>
1010

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ By default, you will only receive notifications about deprecated and/or removed
6161

6262
To get the most out of the PHPCompatibilityWP standard, you should specify a `testVersion` to check against. That will enable the checks for both deprecated/removed PHP features as well as the detection of code using new PHP features.
6363

64-
The minimum PHP requirement of the WordPress project up to WP 5.1 was 5.2.4. As of WP 5.2 it will be PHP 5.6. If you want to enforce this, either add `--runtime-set testVersion 5.6-` to your command-line command or add `<config name="testVersion" value="5.6-"/>` to your [custom ruleset](https://github.com/PHPCompatibility/PHPCompatibility#using-a-custom-ruleset).
64+
The minimum PHP requirement of the WordPress project up to WP 5.1 was 5.2.4. As of WP 5.2 it will be PHP 5.6.20. If you want to enforce this, either add `--runtime-set testVersion 5.6-` to your command-line command or add `<config name="testVersion" value="5.6-"/>` to your [custom ruleset](https://github.com/PHPCompatibility/PHPCompatibility#using-a-custom-ruleset).
6565

6666
For example:
6767
```bash

0 commit comments

Comments
 (0)