Skip to content

Commit 805595b

Browse files
committed
Disable standalone null, true and false type hints
Signed-off-by: Maurício Meneghini Fauth <[email protected]>
1 parent 7204b49 commit 805595b

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

PhpMyAdmin/ruleset.xml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,20 @@
1616
<!-- Do not replace /* @var type $foo */ and similar simple inline annotations with assert() -->
1717
<exclude name="SlevomatCodingStandard.PHP.RequireExplicitAssertion"/>
1818
</rule>
19+
20+
<rule ref="SlevomatCodingStandard.TypeHints.ParameterTypeHint">
21+
<properties>
22+
<property name="enableStandaloneNullTrueFalseTypeHints" value="false"/>
23+
</properties>
24+
</rule>
25+
<rule ref="SlevomatCodingStandard.TypeHints.PropertyTypeHint">
26+
<properties>
27+
<property name="enableStandaloneNullTrueFalseTypeHints" value="false"/>
28+
</properties>
29+
</rule>
30+
<rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHint">
31+
<properties>
32+
<property name="enableStandaloneNullTrueFalseTypeHints" value="false"/>
33+
</properties>
34+
</rule>
1935
</ruleset>

0 commit comments

Comments
 (0)