1
0
Fork 0

Fix 5.3 support

pull/7904/head
Jordi Boggiano 2018-12-04 11:38:26 +01:00
parent fc03ab9bba
commit 00de0f5854
1 changed files with 2 additions and 2 deletions

View File

@ -588,9 +588,9 @@ class ComposerRepository extends ArrayRepository implements ConfigurableReposito
} }
} }
$loadedPackages = $this->createPackages($versionsToLoad, 'Composer\Package\CompletePackage'); $loadedPackages = $repo->createPackages($versionsToLoad, 'Composer\Package\CompletePackage');
foreach ($loadedPackages as $package) { foreach ($loadedPackages as $package) {
$package->setRepository($this); $package->setRepository($repo);
$packages[spl_object_hash($package)] = $package; $packages[spl_object_hash($package)] = $package;
if ($package instanceof AliasPackage && !isset($packages[spl_object_hash($package->getAliasOf())])) { if ($package instanceof AliasPackage && !isset($packages[spl_object_hash($package->getAliasOf())])) {