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 11d9c80 commit 2cf2d60Copy full SHA for 2cf2d60
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