diff --git a/tests/Rules/Functions/ArrayFilterStrictRuleTest.php b/tests/Rules/Functions/ArrayFilterStrictRuleTest.php index 4ef5448..e2c989c 100644 --- a/tests/Rules/Functions/ArrayFilterStrictRuleTest.php +++ b/tests/Rules/Functions/ArrayFilterStrictRuleTest.php @@ -11,28 +11,20 @@ class ArrayFilterStrictRuleTest extends RuleTestCase { - private bool $treatPhpDocTypesAsCertain; - private bool $checkNullables; protected function getRule(): Rule { return new ArrayFilterStrictRule( $this->createReflectionProvider(), - $this->treatPhpDocTypesAsCertain, + $this->shouldTreatPhpDocTypesAsCertain(), $this->checkNullables, true, ); } - protected function shouldTreatPhpDocTypesAsCertain(): bool - { - return $this->treatPhpDocTypesAsCertain; - } - public function testRule(): void { - $this->treatPhpDocTypesAsCertain = true; $this->checkNullables = true; $this->analyse([__DIR__ . '/data/array-filter-strict.php'], [ [ @@ -60,7 +52,6 @@ public function testRule(): void public function testRuleAllowMissingCallbackInSomeCases(): void { - $this->treatPhpDocTypesAsCertain = true; $this->checkNullables = true; $this->analyse([__DIR__ . '/data/array-filter-allow.php'], [ [