diff --git a/src/Composer/Installer.php b/src/Composer/Installer.php index 4af17f074..2f7a3b137 100644 --- a/src/Composer/Installer.php +++ b/src/Composer/Installer.php @@ -405,7 +405,6 @@ class Installer $package->setAlias($alias['alias_normalized']); $package->setPrettyAlias($alias['alias']); $package->getRepository()->addPackage($aliasPackage = new AliasPackage($package, $alias['alias_normalized'], $alias['alias'])); - $package->getRepository()->removePackage($package); $aliasPackage->setRootPackageAlias(true); } }