File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 78
78
</rule >
79
79
80
80
81
- <!-- ***************************************************** -->
81
+ <!-- **************************************** -->
82
+ <!-- Enable rules not enforced by Doctrine CS -->
83
+ <!-- **************************************** -->
84
+
85
+ <!-- Require arrow functions where possible -->
86
+ <rule ref =" SlevomatCodingStandard.Functions.RequireArrowFunction" />
82
87
<!-- Forbid fully qualified names even for colliding names -->
83
- <!-- ***************************************************** -->
84
88
<rule ref =" SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly" >
85
89
<properties >
86
90
<property name =" allowFallbackGlobalConstants" value =" false" />
109
113
110
114
<exclude name =" SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingTraversableTypeHintSpecification" />
111
115
</rule >
112
-
113
116
<rule ref =" SlevomatCodingStandard.TypeHints.PropertyTypeHint" >
114
117
<properties >
115
118
<!-- Requires PHP 8.0 -->
120
123
121
124
<exclude name =" SlevomatCodingStandard.TypeHints.PropertyTypeHint.MissingTraversableTypeHintSpecification" />
122
125
</rule >
123
-
124
126
<rule ref =" SlevomatCodingStandard.TypeHints.ReturnTypeHint" >
125
127
<properties >
126
128
<!-- Requires PHP 8.0 -->
Original file line number Diff line number Diff line change @@ -32,10 +32,8 @@ public function testMethodsAreOrderedAlphabeticallyByVisibility($className): voi
32
32
33
33
$ methods = array_filter (
34
34
$ methods ,
35
- function (ReflectionMethod $ method ) use ($ class ) {
36
- return $ method ->getDeclaringClass () == $ class // Exclude inherited methods
37
- && $ method ->getFileName () === $ class ->getFileName (); // Exclude methods inherited from traits
38
- },
35
+ fn (ReflectionMethod $ method ) => $ method ->getDeclaringClass () == $ class // Exclude inherited methods
36
+ && $ method ->getFileName () === $ class ->getFileName (),
39
37
);
40
38
41
39
$ getSortValue = function (ReflectionMethod $ method ) {
You can’t perform that action at this time.
0 commit comments