
ordered_traits
¶Trait use
statements must be sorted alphabetically.
Warning
Using this rule is risky.
Risky when depending on order of the imports.
--- Original
+++ New
@@ -1,2 +1,2 @@
<?php class Foo {
-use Z; use A; }
+use A; use Z; }
The rule is part of the following rule sets:
Using the @PhpCsFixer:risky rule set will enable the ordered_traits
rule.
Using the @Symfony:risky rule set will enable the ordered_traits
rule.