Skip to content

Commit a27a3f5

Browse files
committed
Update CompactVariablesRuleTest.php
1 parent 10866c9 commit a27a3f5

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

tests/PHPStan/Rules/Variables/CompactVariablesRuleTest.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,13 @@
1111
class CompactVariablesRuleTest extends RuleTestCase
1212
{
1313

14-
/** @var true */
15-
private bool $checkMaybeUndefinedVariables;
16-
1714
protected function getRule(): Rule
1815
{
19-
return new CompactVariablesRule($this->checkMaybeUndefinedVariables);
16+
return new CompactVariablesRule(true);
2017
}
2118

2219
public function testCompactVariables(): void
2320
{
24-
$this->checkMaybeUndefinedVariables = true;
2521
$this->analyse([__DIR__ . '/data/compact-variables.php'], [
2622
[
2723
'Call to function compact() contains undefined variable $bar.',

0 commit comments

Comments
 (0)