We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11b6403 commit e861638Copy full SHA for e861638
tests/Rules/Functions/ArrayFilterStrictRuleTest.php
@@ -11,21 +11,18 @@
11
class ArrayFilterStrictRuleTest extends RuleTestCase
12
{
13
14
- private bool $checkNullables;
15
-
16
protected function getRule(): Rule
17
18
return new ArrayFilterStrictRule(
19
$this->createReflectionProvider(),
20
$this->shouldTreatPhpDocTypesAsCertain(),
21
- $this->checkNullables,
+ true,
22
true,
23
);
24
}
25
26
public function testRule(): void
27
28
- $this->checkNullables = true;
29
$this->analyse([__DIR__ . '/data/array-filter-strict.php'], [
30
[
31
'Call to function array_filter() requires parameter #2 to be passed to avoid loose comparison semantics.',
@@ -52,7 +49,6 @@ public function testRule(): void
52
49
53
50
public function testRuleAllowMissingCallbackInSomeCases(): void
54
51
55
56
$this->analyse([__DIR__ . '/data/array-filter-allow.php'], [
57
58
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments