Skip to content

Commit fe9bacf

Browse files
committed
Example ruleset: update some recommended settings
* Generally we recommend for the `minimum_wp_version` to be ~3 versions behind the latest WP release (currently 6.8.2). * To align with this, I'm setting the `testVersion` for PHPCompatibility to PHP 7.0 or higher (which was the minimum PHP version in WP 6.5).
1 parent d3a45da commit fe9bacf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

phpcs.xml.dist.sample

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
https://github.com/PHPCompatibility/PHPCompatibility
7979
-->
8080
<!--
81-
<config name="testVersion" value="5.6-"/>
81+
<config name="testVersion" value="7.0-"/>
8282
<rule ref="PHPCompatibilityWP">
8383
<include-pattern>*\.php</include-pattern>
8484
</rule>
@@ -100,7 +100,7 @@
100100
the wiki:
101101
https://github.com/WordPress/WordPress-Coding-Standards/wiki/Customizable-sniff-properties
102102
-->
103-
<config name="minimum_wp_version" value="6.0"/>
103+
<config name="minimum_wp_version" value="6.5"/>
104104

105105
<rule ref="WordPress.WP.I18n">
106106
<properties>

0 commit comments

Comments
 (0)