فهرست منبع

Merge pull request #109 from stloyd/patch-3

[ZipDowloader] Proper exception usage
Jordi Boggiano 13 سال پیش
والد
کامیت
74760cd7ac
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)
     protected function extract($file, $path)
     {
     {
         if (!class_exists('ZipArchive')) {
         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();
         $zipArchive = new \ZipArchive();