We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 93eac04 commit bb991b8Copy full SHA for bb991b8
1 file changed
tests/PHPStan/Rules/Variables/DefinedVariableRuleTest.php
@@ -1393,6 +1393,16 @@ public function testBug6830(): void
1393
$this->analyse([__DIR__ . '/data/bug-6830.php'], []);
1394
}
1395
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
1406
public function testBug14117(): void
1407
{
1408
$this->cliArgumentsVariablesRegistered = true;
0 commit comments