Skip to content

Commit bb991b8

Browse files
committed
Update DefinedVariableRuleTest.php
1 parent 93eac04 commit bb991b8

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

tests/PHPStan/Rules/Variables/DefinedVariableRuleTest.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1393,6 +1393,16 @@ public function testBug6830(): void
13931393
$this->analyse([__DIR__ . '/data/bug-6830.php'], []);
13941394
}
13951395

1396+
public function testBug14019(): void
1397+
{
1398+
$this->cliArgumentsVariablesRegistered = true;
1399+
$this->polluteScopeWithLoopInitialAssignments = false;
1400+
$this->checkMaybeUndefinedVariables = true;
1401+
$this->polluteScopeWithAlwaysIterableForeach = true;
1402+
1403+
$this->analyse([__DIR__ . '/../../Analyser/nsrt/bug-14019.php'], []);
1404+
}
1405+
13961406
public function testBug14117(): void
13971407
{
13981408
$this->cliArgumentsVariablesRegistered = true;

0 commit comments

Comments
 (0)