File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change 1111class ArrayFilterStrictRuleTest extends RuleTestCase
1212{
1313
14- private bool $ treatPhpDocTypesAsCertain ;
15-
1614private bool $ checkNullables ;
1715
1816protected function getRule (): Rule
1917{
2018return new ArrayFilterStrictRule (
2119$ this ->createReflectionProvider (),
22- $ this ->treatPhpDocTypesAsCertain ,
20+ $ this ->shouldTreatPhpDocTypesAsCertain () ,
2321$ this ->checkNullables ,
2422true ,
2523);
2624}
2725
28- protected function shouldTreatPhpDocTypesAsCertain (): bool
29- {
30- return $ this ->treatPhpDocTypesAsCertain ;
31- }
32-
3326public function testRule (): void
3427{
35- $ this ->treatPhpDocTypesAsCertain = true ;
3628$ this ->checkNullables = true ;
3729$ this ->analyse ([__DIR__ . '/data/array-filter-strict.php ' ], [
3830[
@@ -60,7 +52,6 @@ public function testRule(): void
6052
6153public function testRuleAllowMissingCallbackInSomeCases (): void
6254{
63- $ this ->treatPhpDocTypesAsCertain = true ;
6455$ this ->checkNullables = true ;
6556$ this ->analyse ([__DIR__ . '/data/array-filter-allow.php ' ], [
6657[
You can’t perform that action at this time.
0 commit comments