From eab3cde48c1516e4e0532116e1375ea9cfaa3567 Mon Sep 17 00:00:00 2001 From: Joseph Bielawski Date: Tue, 10 Apr 2012 13:42:47 +0300 Subject: [PATCH] [PharDownloader] Force overwrite if previous extract failed and was not removed. --- src/Composer/Downloader/PharDownloader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Downloader/PharDownloader.php b/src/Composer/Downloader/PharDownloader.php index d7b1fae46..94a52e056 100644 --- a/src/Composer/Downloader/PharDownloader.php +++ b/src/Composer/Downloader/PharDownloader.php @@ -28,7 +28,7 @@ class PharDownloader extends ArchiveDownloader { // Can throw an UnexpectedValueException $archive = new \Phar($file); - $archive->extractTo($path); + $archive->extractTo($path, null, true); /* TODO: handle openssl signed phars * https://github.com/composer/composer/pull/33#issuecomment-2250768 * https://github.com/koto/phar-util