Skip to content

Commit 68f05c9

Browse files
committed
Remove unnecessary properties in sniff declaration
1 parent 1ca609d commit 68f05c9

File tree

1 file changed

+3
-26
lines changed

1 file changed

+3
-26
lines changed

phpcs.xml.dist

Lines changed: 3 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -99,39 +99,16 @@
9999
</rule>
100100

101101

102-
<!-- **************************************************************************** -->
103-
<!-- Exclude BC breaking type hints for parameters, properties, and return values -->
104-
<!-- **************************************************************************** -->
102+
<!-- ****************************************************** -->
103+
<!-- Don't require annotations to specify traversable types -->
104+
<!-- ****************************************************** -->
105105
<rule ref="SlevomatCodingStandard.TypeHints.ParameterTypeHint">
106-
<properties>
107-
<!-- Requires PHP 8.0 -->
108-
<property name="enableMixedTypeHint" value="false" />
109-
<!-- Requires PHP 8.0 -->
110-
<property name="enableUnionTypeHint" value="false" />
111-
</properties>
112-
113106
<exclude name="SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingTraversableTypeHintSpecification" />
114107
</rule>
115108
<rule ref="SlevomatCodingStandard.TypeHints.PropertyTypeHint">
116-
<properties>
117-
<!-- Requires PHP 8.0 -->
118-
<property name="enableMixedTypeHint" value="false" />
119-
<!-- Requires PHP 8.0 -->
120-
<property name="enableUnionTypeHint" value="false" />
121-
</properties>
122-
123109
<exclude name="SlevomatCodingStandard.TypeHints.PropertyTypeHint.MissingTraversableTypeHintSpecification" />
124110
</rule>
125111
<rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHint">
126-
<properties>
127-
<!-- Requires PHP 8.0 -->
128-
<property name="enableStaticTypeHint" value="false" />
129-
<!-- Requires PHP 8.0 -->
130-
<property name="enableMixedTypeHint" value="false" />
131-
<!-- Requires PHP 8.0 -->
132-
<property name="enableUnionTypeHint" value="false" />
133-
</properties>
134-
135112
<exclude name="SlevomatCodingStandard.TypeHints.ReturnTypeHint.MissingTraversableTypeHintSpecification" />
136113
</rule>
137114

0 commit comments

Comments
 (0)