Skip to content

Commit 2bb8e11

Browse files
committed
Ignore scalar type hint warnings, for php version cross-compatibility.
1 parent fc25b71 commit 2bb8e11

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

ruleset.xml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
This standard is an extension of PSR2.
88
</description>
99

10+
1011
<!-- Include all sniffs in the PSR2 standard. -->
1112
<rule ref="PSR2"/>
1213

13-
<!-- Include some sniffs from the Squiz standard. -->
1414
<!--<rule ref="Squiz.Arrays.ArrayDeclaration"/>-->
1515
<rule ref="Squiz.PHP.CommentedOutCode"/>
1616
<rule ref="Squiz.Commenting.VariableComment"/>
@@ -21,6 +21,18 @@
2121

2222
<rule ref="Squiz.Commenting.FunctionComment">
2323
<exclude name="Squiz.Commenting.FunctionComment.MissingParamComment"/>
24-
<exclude name="Squiz.Commenting.FunctionComment.TypeHintMissing"/>
24+
<exclude name="Squiz.Commenting.FunctionComment.ScalarTypeHintMissing"/>
25+
</rule>
26+
27+
<rule ref="Squiz.Operators.ComparisonOperatorUsage" />
28+
29+
<rule ref="Squiz.WhiteSpace.FunctionSpacing">
30+
<properties>
31+
<property name="spacing" value="1"/>
32+
</properties>
33+
</rule>
34+
<rule ref="Squiz.WhiteSpace.FunctionSpacing.After">
35+
<severity>0</severity>
2536
</rule>
37+
2638
</ruleset>

0 commit comments

Comments
 (0)