Disabled CS rule enforcing native type declarations where @param or @return are used instead

We can't use this rule for now, since changing interface type declarations is a major
BC break that is not worth introducing for now.
This commit is contained in:
Marco Pivetta
2019-12-27 17:23:08 +01:00
committed by Ben Ramsey
parent ba419f9715
commit 17b390cc9c
+5
View File
@@ -333,7 +333,12 @@
<properties>
<property name="enableObjectTypeHint" value="true"/>
</properties>
<!-- some native type hints cannot be added, because declaring them on pre-existing interfaces leads
to a major downstream BC break -->
<exclude name="SlevomatCodingStandard.TypeHints.ReturnTypeHint.MissingNativeTypeHint"/>
</rule>
<rule ref="SlevomatCodingStandard.Commenting.UselessFunctionDocComment"/>
<!-- Require the return type hint to have one space (i.e. function foo(): ?int) -->