Skip to content

Commit 52cc140

Browse files
authored
Fix deprecation notice in Inpsyde ruleset.xml
Inpsyde ruleset.xml used a comma-separated string for array configurations, which is now deprecated and will break in PHPCS 3.0 Signed-off-by: Giuseppe Mazzapica <[email protected]>
1 parent 5167aed commit 52cc140

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

Inpsyde/ruleset.xml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@
2727
<rule ref="WordPress.DateTime.CurrentTimeTimestamp"/>
2828
<rule ref="WordPress.DateTime.RestrictedFunctions">
2929
<properties>
30-
<property name="exclude" type="array" value="date"/>
30+
<property name="exclude" type="array">
31+
<element key="0" value="date" />
32+
</property>
3133
</properties>
3234
</rule>
3335
<rule ref="WordPress.NamingConventions.PrefixAllGlobals"/>
@@ -47,7 +49,11 @@
4749
<rule ref="WordPress.PHP.RestrictedPHPFunctions"/>
4850
<rule ref="WordPress.PHP.DiscouragedPHPFunctions">
4951
<properties>
50-
<property name="exclude" type="array" value="serialize,urlencode,obfuscation"/>
52+
<property name="exclude" type="array">
53+
<element key="0" value="serialize" />
54+
<element key="1" value="urlencode" />
55+
<element key="2" value="obfuscation" />
56+
</property>
5157
</properties>
5258
</rule>
5359
<rule ref="WordPress.PHP.DiscouragedPHPFunctions.runtime_configuration">

0 commit comments

Comments
 (0)