mirror of
https://github.com/composer/composer
synced 2025-05-09 08:32:56 +00:00
Make sure exitCode is defined in the show command.
This commit is contained in:
parent
cf5dfdea6b
commit
c3b6c0c85e
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue