Skip to content

Commit da04980

Browse files
minor #19512 [HttpKernel] Fix variable conflicting name (tgalopin)
This PR was merged into the 2.7 branch. Discussion ---------- [HttpKernel] Fix variable conflicting name | Q | A | ------------- | --- | Branch? | 2.7 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Simply fix a conflicting name (`$bundle` is used for the foreach on line 466 and 476). It works for the moment only because there is nothing after the second foreach inside the first. Commits ------- 9ac9f55 [HttpKernel] Fix variable conflicting name
2 parents 5104d8b + 84ab9e7 commit da04980

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Kernel.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -465,8 +465,8 @@ protected function initializeBundles()
465465
$hierarchy[] = $name;
466466
}
467467

468-
foreach ($hierarchy as $bundle) {
469-
$this->bundleMap[$bundle] = $bundleMap;
468+
foreach ($hierarchy as $hierarchyBundle) {
469+
$this->bundleMap[$hierarchyBundle] = $bundleMap;
470470
array_pop($bundleMap);
471471
}
472472
}

0 commit comments

Comments
 (0)