diff --git a/src/Composer/DependencyResolver/LockTransaction.php b/src/Composer/DependencyResolver/LockTransaction.php index e9c7fea2e..0e0eb0c7a 100644 --- a/src/Composer/DependencyResolver/LockTransaction.php +++ b/src/Composer/DependencyResolver/LockTransaction.php @@ -122,9 +122,10 @@ class LockTransaction extends Transaction foreach ($this->resultPackages['all'] as $package) { if ($package instanceof AliasPackage) { - foreach ($aliases as $alias) { + foreach ($aliases as $index => $alias) { if ($alias['package'] === $package->getName()) { $usedAliases[] = $alias; + unset($aliases[$index]); } } }