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:
parent
cb2db16637
commit
1179e4b481
3 changed files with 7 additions and 6 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue