diff --git a/src/Composer/Command/ShowCommand.php b/src/Composer/Command/ShowCommand.php index 635d56bf3..e988cd2f5 100644 --- a/src/Composer/Command/ShowCommand.php +++ b/src/Composer/Command/ShowCommand.php @@ -423,7 +423,9 @@ EOT $packageIsIgnored = \in_array($package->getPrettyName(), $ignoredPackages, true); if ($input->getOption('outdated') && ($packageIsUpToDate || $packageIsIgnored)) { continue; - } elseif ($input->getOption('outdated') || $input->getOption('strict')) { + } + + if ($input->getOption('outdated') || $input->getOption('strict')) { $hasOutdatedPackages = true; }