Skip to content

Commit 9e163bc

Browse files
committed
Add rule to detect implicit nullable default values
1 parent bc3b15b commit 9e163bc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.phpcs.xml

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
<rule ref="SlevomatCodingStandard.Functions.StrictCall" />
3838
<rule ref="SlevomatCodingStandard.Functions.StaticClosure" />
3939
<rule ref="SlevomatCodingStandard.Operators.DisallowEqualOperators" />
40+
<rule ref="SlevomatCodingStandard.TypeHints.NullableTypeForNullDefaultValue" />
4041

4142
<!-- Cleaning - detecting dead code -->
4243
<rule ref="SlevomatCodingStandard.Functions.UnusedInheritedVariablePassedToClosure" />

0 commit comments

Comments
 (0)