Skip to content

Commit 52a2ccb

Browse files
committed
Replace deprecated phpcs sniffs with successors
- SlevomatCodingStandard.TypeHints.UnionTypeHintFormat → DNFTypeHintFormat - Squiz.WhiteSpace.LanguageConstructSpacing → Generic.WhiteSpace.LanguageConstructSpacing
1 parent d78e4fb commit 52a2ccb

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

phpcs.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,17 @@
4747
<exclude name="SlevomatCodingStandard.TypeHints.ReturnTypeHint.MissingTraversableTypeHintSpecification"/>
4848
<exclude name="SlevomatCodingStandard.Commenting.InlineDocCommentDeclaration.NoAssignment"/>
4949
<!-- /Option -->
50+
<!-- Deprecated sniffs — replaced below -->
51+
<exclude name="SlevomatCodingStandard.TypeHints.UnionTypeHintFormat"/>
52+
<exclude name="Squiz.WhiteSpace.LanguageConstructSpacing"/>
5053
<!-- Exclude Fake files form Doctrine CS -->
5154
<exclude-pattern>*/tests/Fake/*</exclude-pattern>
5255
</rule>
5356

57+
<!-- Replacements for deprecated sniffs -->
58+
<rule ref="SlevomatCodingStandard.TypeHints.DNFTypeHintFormat"/>
59+
<rule ref="Generic.WhiteSpace.LanguageConstructSpacing"/>
60+
5461
<!-- Additional Rules -->
5562
<rule ref="SlevomatCodingStandard.Commenting.DocCommentSpacing">
5663
<properties>

0 commit comments

Comments
 (0)