Skip to content

Commit b9ffb7a

Browse files
committed
Allow unused exceptions in phpcs config
1 parent 4eb726c commit b9ffb7a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

phpcs.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@
3333

3434
<!-- variables: https://github.com/sirbrillig/VariableAnalysis/ -->
3535
<rule ref="VariableAnalysis"/>
36+
<rule ref="VariableAnalysis.CodeAnalysis.VariableAnalysis">
37+
<properties>
38+
<property name="allowUnusedCaughtExceptions" value="true"/>
39+
</properties>
40+
</rule>
3641
<rule ref="VariableAnalysis.CodeAnalysis.VariableAnalysis.UndefinedVariable">
3742
<type>error</type>
3843
</rule>

0 commit comments

Comments
 (0)