소스 검색

Use `RuntimeException` instead of `UnexpectedValueException` when zip extension is not enabled

Joseph Bielawski 13 년 전
부모
커밋
d6cd6a4aef
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/Composer/Downloader/ZipDownloader.php

+ 1 - 1
src/Composer/Downloader/ZipDownloader.php

@@ -22,7 +22,7 @@ class ZipDownloader extends FileDownloader
     protected function extract($file, $path)
     {
         if (!class_exists('ZipArchive')) {
-            throw new \UnexpectedValueException('You need the zip extension enabled to use the ZipDownloader');
+            throw new \RuntimeException('You need the zip extension enabled to use the ZipDownloader');
         }
 
         $zipArchive = new \ZipArchive();