8000 minor #17395 [DependencyInjection] Remove useless array declaration (… · symfony/symfony@84623ea · GitHub
[go: up one dir, main page]

Skip to content

Commit 84623ea

Browse files
committed
minor #17395 [DependencyInjection] Remove useless array declaration (paradajozsef)
This PR was merged into the 3.0 branch. Discussion ---------- [DependencyInjection] Remove useless array declaration | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - In [2.8](https://github.co 8000 m/symfony/symfony/blob/2.8/src/Symfony/Component/DependencyInjection/Compiler/CheckReferenceValidityPass.php#L54) ```$ancestors``` was populated with ```$scopes```. 4a3e2f4 removed this, except the array declaration. Commits ------- 7240318 [3.0] Remove useless array declaration
2 parents c300346 + 7240318 commit 84623ea

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/Symfony/Component/DependencyInjection/Compiler/CheckReferenceValidityPass.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ public function process(ContainerBuilder $container)
3838
{
3939
$this->container = $container;
4040

41-
$ancestors = array();
42-
4341
foreach ($container->getDefinitions() as $id => $definition) {
4442
if ($definition->isSynthetic() || $definition->isAbstract()) {
4543
continue;

0 commit comments

Comments
 (0)
0