1
0
Fork 0

Fix regression in edge cases where root package gets added to a repository already during the install process, fixes #11495

pull/11497/head
Jordi Boggiano 2023-06-06 14:02:29 +02:00
parent 7d6c76ee79
commit 902a153741
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 1 additions and 1 deletions

View File

@ -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]);