[DependencyInjection] fixed wrong local variable name in RemoveUnusedDefinitionsPass::process() method.

This commit is contained in:
Hugo Hamon 2012-01-10 21:31:40 +01:00
parent a7f857da87
commit 7088d942ce

View File

@ -56,7 +56,7 @@ class RemoveUnusedDefinitionsPass implements RepeatablePassInterface
$sourceIds[] = $node->getId();
if ($node->isAlias()) {
$referencingAlias[] = $node->getValue();
$referencingAliases[] = $node->getValue();
}
}
$isReferenced = (count(array_unique($sourceIds)) - count($referencingAliases)) > 0;