Skip to content

Commit 721c5d9

Browse files
committed
Resolve conflict for multi-line closure param list
1 parent a258701 commit 721c5d9

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

IxDFCodingStandard/ruleset.xml

+6-2
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,11 @@
301301
<exclude-pattern>tests/*\.php</exclude-pattern>
302302
</rule>
303303
<rule ref="SlevomatCodingStandard.Functions.DisallowTrailingCommaInCall"/>
304-
<rule ref="SlevomatCodingStandard.Functions.DisallowTrailingCommaInClosureUse"/>
304+
<rule ref="SlevomatCodingStandard.Functions.DisallowTrailingCommaInClosureUse">
305+
<properties>
306+
<property name="onlySingleLine" value="true"/>
307+
</properties>
308+
</rule>
305309
<rule ref="SlevomatCodingStandard.Functions.DisallowTrailingCommaInDeclaration"/>
306310
<!-- Forbid long functions and methods -->
307311
<rule ref="SlevomatCodingStandard.Functions.FunctionLength">
@@ -317,7 +321,7 @@
317321
</properties>
318322
</rule>
319323
<rule ref="SlevomatCodingStandard.Functions.RequireSingleLineCall"/>
320-
<rule ref="SlevomatCodingStandard.Functions.RequireTrailingCommaInClosureUse"/>
324+
<!-- <rule ref="SlevomatCodingStandard.Functions.RequireTrailingCommaInClosureUse"/>-->
321325
<rule ref="SlevomatCodingStandard.Functions.StaticClosure"/>
322326
<rule ref="SlevomatCodingStandard.Functions.StrictCall"/>
323327
<rule ref="SlevomatCodingStandard.Functions.UnusedInheritedVariablePassedToClosure"/>

0 commit comments

Comments
 (0)