Skip to content

Commit a35b339

Browse files
committed
Update DiscouragedPHPFunctions exclusion
The handling of group exclusions for some sniffs was changed in WPCS 2.0.0. It now requires the list of group exclusions to be treated as a property array. See https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/wiki/Customizable-sniff-properties#excluding-a-group-of-checks for more info.
1 parent 190040c commit a35b339

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

WordPressVIPMinimum/ruleset.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,9 @@
6868
<rule ref="WordPress.PHP.DiscouragedPHPFunctions">
6969
<!-- https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/pull/633#issuecomment-266634811 -->
7070
<properties>
71-
<property name="exclude" value="obfuscation"/>
71+
<property name="exclude" type="array">
72+
<element value="obfuscation"/>
73+
</property>
7274
</properties>
7375
</rule>
7476
<rule ref="WordPress.PHP.DiscouragedPHPFunctions.runtime_configuration_error_reporting">

0 commit comments

Comments
 (0)