BC break: Remove workaround for loading lock files without dev requires

main
Nils Adermann 6 years ago
parent 287419f6a0
commit 1211ba1d51

@ -350,16 +350,7 @@ class Installer
// and a lock file is present as we need to force install non-whitelisted lock file
// packages in that case
if (!$this->update || (!empty($this->updateWhitelist) && $this->locker->isLocked())) {
try {
$lockedRepository = $this->locker->getLockedRepository($this->devMode);
} catch (\RuntimeException $e) {
// if there are dev requires, then we really can not install
if ($this->package->getDevRequires()) {
throw $e;
}
// no require-dev in composer.json and the lock file was created with no dev info, so skip them
$lockedRepository = $this->locker->getLockedRepository();
}
$lockedRepository = $this->locker->getLockedRepository($this->devMode);
}
$this->whitelistUpdateDependencies(

Loading…
Cancel
Save