1
0
Fork 0

Make sure exitCode is defined in the show command.

pull/6895/merge
Tom Rochette 2017-12-15 16:07:54 -05:00 committed by Jordi Boggiano
parent cf5dfdea6b
commit c3b6c0c85e
1 changed files with 1 additions and 1 deletions

View File

@ -197,11 +197,11 @@ EOT
$versions = array($package->getPrettyVersion() => $package->getVersion()); $versions = array($package->getPrettyVersion() => $package->getVersion());
} }
$exitCode = 0;
if ($input->getOption('tree')) { if ($input->getOption('tree')) {
$this->displayPackageTree($package, $installedRepo, $repos); $this->displayPackageTree($package, $installedRepo, $repos);
} else { } else {
$latestPackage = null; $latestPackage = null;
$exitCode = 0;
if ($input->getOption('latest')) { if ($input->getOption('latest')) {
$latestPackage = $this->findLatestPackage($package, $composer, $phpVersion); $latestPackage = $this->findLatestPackage($package, $composer, $phpVersion);
} }