diff --git a/src/Composer/Downloader/GitDownloader.php b/src/Composer/Downloader/GitDownloader.php index 300749ca8..3d3d947f4 100644 --- a/src/Composer/Downloader/GitDownloader.php +++ b/src/Composer/Downloader/GitDownloader.php @@ -134,7 +134,7 @@ class GitDownloader extends VcsDownloader implements DvcsDownloaderInterface $msg = "Checking out ".$this->getShortHash($ref); $command = 'git remote set-url composer %url% && git rev-parse --quiet --verify %ref% || (git fetch composer && git fetch --tags composer)'; if (getenv('COMPOSER_DISABLE_NETWORK')) { - throw new \RuntimeException('The required git reference for '.$package->getName().' is not in cache and network is disabled, aborting'); + throw new \RuntimeException('The required git reference for '.$target->getName().' is not in cache and network is disabled, aborting'); } } diff --git a/src/Composer/Downloader/VcsDownloader.php b/src/Composer/Downloader/VcsDownloader.php index 15bf55072..ce0a4bd9f 100644 --- a/src/Composer/Downloader/VcsDownloader.php +++ b/src/Composer/Downloader/VcsDownloader.php @@ -20,6 +20,7 @@ use Composer\Package\Version\VersionParser; use Composer\Util\ProcessExecutor; use Composer\IO\IOInterface; use Composer\Util\Filesystem; +use React\Promise\PromiseInterface; /** * @author Jordi Boggiano