소스 검색

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

Nils Adermann 6 년 전
부모
커밋
1211ba1d51
1개의 변경된 파일1개의 추가작업 그리고 10개의 파일을 삭제
  1. 1 10
      src/Composer/Installer.php

+ 1 - 10
src/Composer/Installer.php

@@ -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(