Create lock if we only have platform dependencies
parent
e5985a9b55
commit
4d665f59b0
|
@ -258,7 +258,10 @@ class Locker
|
|||
$lock['packages-dev'] = $this->lockPackages($devPackages);
|
||||
}
|
||||
|
||||
if (empty($lock['packages']) && empty($lock['packages-dev'])) {
|
||||
$lock['platform'] = $platformReqs;
|
||||
$lock['platform-dev'] = $platformDevReqs;
|
||||
|
||||
if (empty($lock['packages']) && empty($lock['packages-dev']) && empty($lock['platform']) && empty($lock['platform-dev'])) {
|
||||
if ($this->lockFile->exists()) {
|
||||
unlink($this->lockFile->getPath());
|
||||
}
|
||||
|
@ -266,9 +269,6 @@ class Locker
|
|||
return false;
|
||||
}
|
||||
|
||||
$lock['platform'] = $platformReqs;
|
||||
$lock['platform-dev'] = $platformDevReqs;
|
||||
|
||||
if (!$this->isLocked() || $lock !== $this->getLockData()) {
|
||||
$this->lockFile->write($lock);
|
||||
$this->lockDataCache = null;
|
||||
|
|
Loading…
Reference in New Issue