diff --git a/src/Composer/Downloader/ArchiveDownloader.php b/src/Composer/Downloader/ArchiveDownloader.php index db8c04391..a6648bcdf 100644 --- a/src/Composer/Downloader/ArchiveDownloader.php +++ b/src/Composer/Downloader/ArchiveDownloader.php @@ -93,7 +93,10 @@ abstract class ArchiveDownloader extends FileDownloader $filesystem->removeDirectory($path); } $this->removeCleanupPath($package, $temporaryDir); - $this->removeCleanupPath($package, realpath($path)); + $realpath = realpath($path); + if ($realpath !== false) { + $this->removeCleanupPath($package, $realpath); + } }; try {