Skip to content

Commit 2de29f2

Browse files
committed
Enforce the PSR-12 order of use statements
PSR-12 states that the order should be: classes, functions, constants
1 parent 3997268 commit 2de29f2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/LEVIY/ruleset.xml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,11 @@
5656
<property name="searchAnnotations" value="true"/>
5757
</properties>
5858
</rule>
59-
<rule ref="SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses"/>
59+
<rule ref="SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses">
60+
<properties>
61+
<property name="psr12Compatible" value="true"/>
62+
</properties>
63+
</rule>
6064

6165
<!-- Use PHP native type hints whenever possible. Use docblocks only when
6266
the use of native type hints is impossible. -->

0 commit comments

Comments
 (0)