1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-11 09:32:55 +00:00

Change root.dev-requirement to root.dev in installed.php as the root is not required per se, and this simply tracks the dev mode at install time

This commit is contained in:
Jordi Boggiano 2021-04-07 13:27:20 +02:00
parent cb2db16637
commit 1179e4b481
No known key found for this signature in database
GPG key ID: 7BBD42C429EC80BC
3 changed files with 7 additions and 6 deletions

View file

@ -179,8 +179,9 @@ class FilesystemRepository extends WritableArrayRepository
);
if ($package instanceof RootPackageInterface) {
$versions['root'] = $versions['versions'][$package->getName()];
unset($versions['root']['dev-requirement']);
$versions['root']['name'] = $package->getName();
$versions['root']['dev-requirement'] = $devMode;
$versions['root']['dev'] = $devMode;
}
}