We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 623ad7d + 45fcfe8 commit 8a126e5Copy full SHA for 8a126e5
ruleset.xml
@@ -39,6 +39,15 @@
39
}
40
-->
41
<property name="allowUnusedCaughtExceptions" value="1"/>
42
+ <!--
43
+ Include the following property if you want to prevent function parametets from causing an
44
+ unused variable warning, this supports the common pattern of defining callback functions that
45
+ demand a fixed parameter list without actually using all the paramets.
46
+ function foo ($a, $b, $c) {
47
+ // Do something without ever using some of $a, $b and/or $c
48
+ }
49
+ -->
50
+ <property name="allowUnusedFunctionParameters" value="1"/>
51
<!--
52
Include the following property if you want to have a whitelist of variable names
53
that are commonly used for placeholder "junk" values that ignored and that you
0 commit comments