From 9020b7113ca9a70dcce73fde969eff7e67312767 Mon Sep 17 00:00:00 2001 From: Pieter Frenssen Date: Thu, 26 Jan 2017 17:07:36 +0200 Subject: [PATCH] Fix invalid calculation on non-numeric string --- src/Composer/Downloader/GitDownloader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Downloader/GitDownloader.php b/src/Composer/Downloader/GitDownloader.php index 748016f92..8c54832c4 100644 --- a/src/Composer/Downloader/GitDownloader.php +++ b/src/Composer/Downloader/GitDownloader.php @@ -251,7 +251,7 @@ class GitDownloader extends VcsDownloader implements DvcsDownloaderInterface $this->io->writeError(' The package has modified files:'); $this->io->writeError(array_slice($changes, 0, 10)); if (count($changes) > 10) { - $this->io->writeError(' '.count($changes) - 10 . ' more files modified, choose "v" to view the full list'); + $this->io->writeError(' ' . (count($changes) - 10) . ' more files modified, choose "v" to view the full list'); } while (true) {