1
0
Fork 0

Avoid generating duplicate aliases in lock file if several aliased packages are installed

pull/8752/head
Jordi Boggiano 2020-04-08 14:18:38 +02:00
parent 64f907f93f
commit 2e64e8dc2e
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 2 additions and 1 deletions

View File

@ -122,9 +122,10 @@ class LockTransaction extends Transaction
foreach ($this->resultPackages['all'] as $package) { foreach ($this->resultPackages['all'] as $package) {
if ($package instanceof AliasPackage) { if ($package instanceof AliasPackage) {
foreach ($aliases as $alias) { foreach ($aliases as $index => $alias) {
if ($alias['package'] === $package->getName()) { if ($alias['package'] === $package->getName()) {
$usedAliases[] = $alias; $usedAliases[] = $alias;
unset($aliases[$index]);
} }
} }
} }