Skip to content

Commit 7bc2646

Browse files
gsherwoodjrfnl
authored andcommitted
Updated Annotated Ruleset (markdown)
1 parent 87e2c29 commit 7bc2646

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

wiki/Annotated-Ruleset.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,24 @@ The following sample file documents the ruleset.xml format and shows you the com
310310
</properties>
311311
</rule>
312312

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+
313331
<!--
314332
If you want to completely disable an error message in a sniff
315333
but you don't want to exclude the whole sniff, you can

0 commit comments

Comments
 (0)