File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -310,6 +310,24 @@ The following sample file documents the ruleset.xml format and shows you the com
310
310
</properties >
311
311
</rule >
312
312
313
+ <!--
314
+ If you are including another standard, some array properties may
315
+ have already been defined. Instead of having to redefine them,
316
+ you can choose to extend the property value. Any elements with
317
+ new keys will be added to the property value, and any elements with
318
+ existing keys will override the imported value.
319
+
320
+ NOTE: This syntax is is only supported in PHP_CodeSniffer
321
+ versions 3.4.0 and greater.
322
+ -->
323
+ <rule ref =" Generic.PHP.ForbiddenFunctions" >
324
+ <properties >
325
+ <property name =" forbiddenFunctions" type =" array" extend =true>
326
+ <element key =" sizeof" value =" count" />
327
+ </property >
328
+ </properties >
329
+ </rule >
330
+
313
331
<!--
314
332
If you want to completely disable an error message in a sniff
315
333
but you don't want to exclude the whole sniff, you can
You can’t perform that action at this time.
0 commit comments