|
63 | 63 | <!-- Exclude sniffs that cause a huge diff - enable separately --> |
64 | 64 | <!-- ********************************************************* --> |
65 | 65 | <exclude name="SlevomatCodingStandard.Commenting.DocCommentSpacing.IncorrectAnnotationsGroup" /> |
66 | | - <exclude name="Squiz.Strings.DoubleQuoteUsage" /> |
67 | 66 |
|
68 | 67 |
|
69 | 68 | <!-- ********************* --> |
|
78 | 77 | </rule> |
79 | 78 |
|
80 | 79 |
|
81 | | - <!-- ***************************************************** --> |
| 80 | + <!-- **************************************** --> |
| 81 | + <!-- Enable rules not enforced by Doctrine CS --> |
| 82 | + <!-- **************************************** --> |
| 83 | + |
| 84 | + <!-- Require arrow functions where possible --> |
| 85 | + <rule ref="SlevomatCodingStandard.Functions.RequireArrowFunction"/> |
82 | 86 | <!-- Forbid fully qualified names even for colliding names --> |
83 | | - <!-- ***************************************************** --> |
84 | 87 | <rule ref="SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly"> |
85 | 88 | <properties> |
86 | 89 | <property name="allowFallbackGlobalConstants" value="false"/> |
|
96 | 99 | </rule> |
97 | 100 |
|
98 | 101 |
|
99 | | - <!-- **************************************************************************** --> |
100 | | - <!-- Exclude BC breaking type hints for parameters, properties, and return values --> |
101 | | - <!-- **************************************************************************** --> |
| 102 | + <!-- ****************************************************** --> |
| 103 | + <!-- Don't require annotations to specify traversable types --> |
| 104 | + <!-- ****************************************************** --> |
102 | 105 | <rule ref="SlevomatCodingStandard.TypeHints.ParameterTypeHint"> |
103 | | - <properties> |
104 | | - <!-- Requires PHP 8.0 --> |
105 | | - <property name="enableMixedTypeHint" value="false" /> |
106 | | - <!-- Requires PHP 8.0 --> |
107 | | - <property name="enableUnionTypeHint" value="false" /> |
108 | | - </properties> |
109 | | - |
110 | 106 | <exclude name="SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingTraversableTypeHintSpecification" /> |
111 | 107 | </rule> |
112 | | - |
113 | 108 | <rule ref="SlevomatCodingStandard.TypeHints.PropertyTypeHint"> |
114 | | - <properties> |
115 | | - <!-- Requires PHP 8.0 --> |
116 | | - <property name="enableMixedTypeHint" value="false" /> |
117 | | - <!-- Requires PHP 8.0 --> |
118 | | - <property name="enableUnionTypeHint" value="false" /> |
119 | | - </properties> |
120 | | - |
121 | 109 | <exclude name="SlevomatCodingStandard.TypeHints.PropertyTypeHint.MissingTraversableTypeHintSpecification" /> |
122 | 110 | </rule> |
123 | | - |
124 | 111 | <rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHint"> |
125 | | - <properties> |
126 | | - <!-- Requires PHP 8.0 --> |
127 | | - <property name="enableStaticTypeHint" value="false" /> |
128 | | - <!-- Requires PHP 8.0 --> |
129 | | - <property name="enableMixedTypeHint" value="false" /> |
130 | | - <!-- Requires PHP 8.0 --> |
131 | | - <property name="enableUnionTypeHint" value="false" /> |
132 | | - </properties> |
133 | | - |
134 | 112 | <exclude name="SlevomatCodingStandard.TypeHints.ReturnTypeHint.MissingTraversableTypeHintSpecification" /> |
135 | 113 | </rule> |
136 | 114 |
|
|
0 commit comments