diff --git a/tests/PHPStan/Rules/Variables/DefinedVariableRuleTest.php b/tests/PHPStan/Rules/Variables/DefinedVariableRuleTest.php index d0687165fb..19949bea9e 100644 --- a/tests/PHPStan/Rules/Variables/DefinedVariableRuleTest.php +++ b/tests/PHPStan/Rules/Variables/DefinedVariableRuleTest.php @@ -918,13 +918,13 @@ public function testBug4173(): void ]); } - public function testBug5803(): void + public function testBug5805(): void { $this->cliArgumentsVariablesRegistered = true; $this->polluteScopeWithLoopInitialAssignments = false; $this->checkMaybeUndefinedVariables = true; $this->polluteScopeWithAlwaysIterableForeach = true; - $this->analyse([__DIR__ . '/data/bug-5803.php'], []); + $this->analyse([__DIR__ . '/data/bug-5805.php'], []); } } diff --git a/tests/PHPStan/Rules/Variables/data/bug-5803.php b/tests/PHPStan/Rules/Variables/data/bug-5805.php similarity index 90% rename from tests/PHPStan/Rules/Variables/data/bug-5803.php rename to tests/PHPStan/Rules/Variables/data/bug-5805.php index 60d74283f8..2f875db913 100644 --- a/tests/PHPStan/Rules/Variables/data/bug-5803.php +++ b/tests/PHPStan/Rules/Variables/data/bug-5805.php @@ -1,6 +1,6 @@