diff --git a/src/Composer/Downloader/FileDownloader.php b/src/Composer/Downloader/FileDownloader.php index beadc8f4c..4ddd01ca7 100644 --- a/src/Composer/Downloader/FileDownloader.php +++ b/src/Composer/Downloader/FileDownloader.php @@ -66,10 +66,10 @@ class FileDownloader implements DownloaderInterface $this->io->write(" - Package " . $package->getName() . " (" . $package->getPrettyVersion() . ")"); - $url = $this->processUrl($url); + $processUrl = $this->processUrl($url); try { - $this->rfs->copy($package->getSourceUrl(), $url, $fileName); + $this->rfs->copy($package->getSourceUrl(), $processUrl, $fileName); if (!file_exists($fileName)) { throw new \UnexpectedValueException($url.' could not be saved to '.$fileName.', make sure the'