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 10866c9 commit a27a3f5Copy full SHA for a27a3f5
tests/PHPStan/Rules/Variables/CompactVariablesRuleTest.php
@@ -11,17 +11,13 @@
11
class CompactVariablesRuleTest extends RuleTestCase
12
{
13
14
- /** @var true */
15
- private bool $checkMaybeUndefinedVariables;
16
-
17
protected function getRule(): Rule
18
19
- return new CompactVariablesRule($this->checkMaybeUndefinedVariables);
+ return new CompactVariablesRule(true);
20
}
21
22
public function testCompactVariables(): void
23
24
- $this->checkMaybeUndefinedVariables = true;
25
$this->analyse([__DIR__ . '/data/compact-variables.php'], [
26
[
27
'Call to function compact() contains undefined variable $bar.',
0 commit comments