Fix regression in edge cases where root package gets added to a repository already during the install process, fixes #11495
parent
7d6c76ee79
commit
902a153741
|
@ -515,7 +515,7 @@ class Locker
|
||||||
if ($includeDev === true) {
|
if ($includeDev === true) {
|
||||||
$sets[] = ['repo' => $this->getLockedRepository(true), 'method' => 'getDevRequires', 'description' => 'Required (in require-dev)'];
|
$sets[] = ['repo' => $this->getLockedRepository(true), 'method' => 'getDevRequires', 'description' => 'Required (in require-dev)'];
|
||||||
}
|
}
|
||||||
$rootRepo = new RootPackageRepository($package);
|
$rootRepo = new RootPackageRepository(clone $package);
|
||||||
|
|
||||||
foreach ($sets as $set) {
|
foreach ($sets as $set) {
|
||||||
$installedRepo = new InstalledRepository([$set['repo'], $rootRepo]);
|
$installedRepo = new InstalledRepository([$set['repo'], $rootRepo]);
|
||||||
|
|
Loading…
Reference in New Issue