From c3b6c0c85ea9484792e785cbe07d127a57875440 Mon Sep 17 00:00:00 2001 From: Tom Rochette Date: Fri, 15 Dec 2017 16:07:54 -0500 Subject: [PATCH] Make sure exitCode is defined in the show command. --- src/Composer/Command/ShowCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Command/ShowCommand.php b/src/Composer/Command/ShowCommand.php index 48d3cf138..b90d5c302 100644 --- a/src/Composer/Command/ShowCommand.php +++ b/src/Composer/Command/ShowCommand.php @@ -197,11 +197,11 @@ EOT $versions = array($package->getPrettyVersion() => $package->getVersion()); } + $exitCode = 0; if ($input->getOption('tree')) { $this->displayPackageTree($package, $installedRepo, $repos); } else { $latestPackage = null; - $exitCode = 0; if ($input->getOption('latest')) { $latestPackage = $this->findLatestPackage($package, $composer, $phpVersion); }