Skip to content

Commit c7e7651

Browse files
committed
fix: exclude PHPCompatibility reserved keyword check for List namespace
1 parent ac98091 commit c7e7651

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

plugins/wpgraphql-logging/phpcs.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,10 @@
5353
</rule>
5454
<rule ref="PSR12.Files.DeclareStatement"/>
5555
<rule ref="PEAR.NamingConventions.ValidClassName"/>
56-
<rule ref="PHPCompatibilityWP"/>
56+
<rule ref="PHPCompatibilityWP">
57+
<!-- "List" as a namespace component is valid in PHP and works at runtime -->
58+
<exclude name="PHPCompatibility.Keywords.ForbiddenNames.listFound"/>
59+
</rule>
5760
<rule ref="WordPress-VIP-Go">
5861
<exclude name="WordPressVIPMinimum.JS.Window"/>
5962
<exclude name="WordPressVIPMinimum.JS.DangerouslySetInnerHTML"/>

0 commit comments

Comments
 (0)