diff --git a/tests/Rules/NarrowPublicClassMethodParamTypeRule/Fixture/SkipExplicitlyNullableParams.php b/tests/Rules/NarrowPublicClassMethodParamTypeRule/Fixture/SkipExplicitlyNullableParams.php new file mode 100644 index 00000000..a50aff1e --- /dev/null +++ b/tests/Rules/NarrowPublicClassMethodParamTypeRule/Fixture/SkipExplicitlyNullableParams.php @@ -0,0 +1,22 @@ +test(false); + } +} diff --git a/tests/Rules/NarrowPublicClassMethodParamTypeRule/NarrowPublicClassMethodParamTypeRuleTest.php b/tests/Rules/NarrowPublicClassMethodParamTypeRule/NarrowPublicClassMethodParamTypeRuleTest.php index a62308c4..20241c3b 100644 --- a/tests/Rules/NarrowPublicClassMethodParamTypeRule/NarrowPublicClassMethodParamTypeRuleTest.php +++ b/tests/Rules/NarrowPublicClassMethodParamTypeRule/NarrowPublicClassMethodParamTypeRuleTest.php @@ -155,7 +155,16 @@ public static function provideData(): Iterator yield [[__DIR__ . '/Fixture/SkipEnum.php'], []]; $argErrorMessage = sprintf(NarrowPublicClassMethodParamTypeRule::ERROR_MESSAGE, 'int'); - yield [[__DIR__ . '/Fixture/HandleDefaultValue.php'], [[$argErrorMessage, 15]]]; + + yield [[ + __DIR__ . '/Fixture/HandleDefaultValue.php', + ], [[$argErrorMessage, 15]]]; + + yield [[ + __DIR__ . '/Fixture/SkipExplicitlyNullableParams.php', + ], []]; + + yield [[__DIR__ . '/Fixture/HandleDefaultValue.php'], [[$argErrorMessage, 15]]]; } /**