File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change 1111class ArrayFilterStrictRuleTest extends RuleTestCase
1212{
1313
14- private bool $ checkNullables ;
15-
1614 protected function getRule (): Rule
1715 {
1816 return new ArrayFilterStrictRule (
1917 $ this ->createReflectionProvider (),
2018 $ this ->shouldTreatPhpDocTypesAsCertain (),
21- $ this -> checkNullables ,
19+ true ,
2220 true ,
2321 );
2422 }
2523
2624 public function testRule (): void
2725 {
28- $ this ->checkNullables = true ;
2926 $ this ->analyse ([__DIR__ . '/data/array-filter-strict.php ' ], [
3027 [
3128 'Call to function array_filter() requires parameter #2 to be passed to avoid loose comparison semantics. ' ,
@@ -52,7 +49,6 @@ public function testRule(): void
5249
5350 public function testRuleAllowMissingCallbackInSomeCases (): void
5451 {
55- $ this ->checkNullables = true ;
5652 $ this ->analyse ([__DIR__ . '/data/array-filter-allow.php ' ], [
5753 [
5854 'Call to function array_filter() requires parameter #2 to be passed to avoid loose comparison semantics. ' ,
You can’t perform that action at this time.
0 commit comments