From d6cd6a4aef998de72fe440d873e4d7ff513b6d5b Mon Sep 17 00:00:00 2001 From: Joseph Bielawski Date: Mon, 14 Nov 2011 23:05:08 +0100 Subject: [PATCH] Use `RuntimeException` instead of `UnexpectedValueException` when zip extension is not enabled --- src/Composer/Downloader/ZipDownloader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Downloader/ZipDownloader.php b/src/Composer/Downloader/ZipDownloader.php index 44f6fa67f..9bf13b168 100644 --- a/src/Composer/Downloader/ZipDownloader.php +++ b/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();