Skip to content

Commit f7ec2bd

Browse files
committed
Move some type hint Sniffs to the Docs standard
1 parent 412f409 commit f7ec2bd

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

BigBite/ruleset.xml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -185,12 +185,6 @@
185185
<rule ref="SlevomatCodingStandard.Operators.DisallowEqualOperators" />
186186
<!-- Prefer +=/-= over ++/\-\-. -->
187187
<rule ref="SlevomatCodingStandard.Operators.DisallowIncrementAndDecrementOperators" />
188-
<!-- Prefer generic over array style for type hints (e.g. array<int> over int[]). -->
189-
<rule ref="SlevomatCodingStandard.TypeHints.DisallowArrayTypeHintSyntax" />
190-
<!-- Prefer shorthand scalar type hints in docblocks. -->
191-
<rule ref="SlevomatCodingStandard.TypeHints.LongTypeHints" />
192-
<!-- Check that type hints are nullable when default value is null. -->
193-
<rule ref="SlevomatCodingStandard.TypeHints.NullableTypeForNullDefaultValue" />
194188
<!-- Disallow variable variables ($$foo). -->
195189
<rule ref="SlevomatCodingStandard.Variables.DisallowVariableVariable" />
196190
<!-- Disallow unused variables. -->

BigBiteDocs/ruleset.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,10 @@
5252
<!-- Disable assumption that the first comment in a file is a file comment. -->
5353
<exclude name="PSR12.Files.FileHeader.SpacingAfterBlock" />
5454
</rule>
55+
<!-- Prefer generic over array style for type hints (e.g. array<int> over int[]). -->
56+
<rule ref="SlevomatCodingStandard.TypeHints.DisallowArrayTypeHintSyntax" />
57+
<!-- Prefer shorthand scalar type hints in docblocks. -->
58+
<rule ref="SlevomatCodingStandard.TypeHints.LongTypeHints" />
59+
<!-- Check that type hints are nullable when default value is null. -->
60+
<rule ref="SlevomatCodingStandard.TypeHints.NullableTypeForNullDefaultValue" />
5561
</ruleset>

0 commit comments

Comments
 (0)