From 8d3a3042339cff6b62280c4bfdb5bc3dd6294979 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Tue, 25 Oct 2022 14:43:53 +0200 Subject: [PATCH] Fix outdated command outputting some of the legend to stdout --- src/Composer/Command/ShowCommand.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Composer/Command/ShowCommand.php b/src/Composer/Command/ShowCommand.php index 47ef25de9..d81869ab8 100644 --- a/src/Composer/Command/ShowCommand.php +++ b/src/Composer/Command/ShowCommand.php @@ -600,19 +600,19 @@ EOT } } - $io->write(''); - $io->write('Direct dependencies required in composer.json:'); + $io->writeError(''); + $io->writeError('Direct dependencies required in composer.json:'); if (\count($directDeps) > 0) { $this->printPackages($io, $directDeps, $indent, $versionFits, $latestFits, $descriptionFits, $width, $versionLength, $nameLength, $latestLength); } else { - $io->write('Everything up to date'); + $io->writeError('Everything up to date'); } - $io->write(''); - $io->write('Transitive dependencies not required in composer.json:'); + $io->writeError(''); + $io->writeError('Transitive dependencies not required in composer.json:'); if (\count($transitiveDeps) > 0) { $this->printPackages($io, $transitiveDeps, $indent, $versionFits, $latestFits, $descriptionFits, $width, $versionLength, $nameLength, $latestLength); } else { - $io->write('Everything up to date'); + $io->writeError('Everything up to date'); } } else { $this->printPackages($io, $packages, $indent, $versionFits, $latestFits, $descriptionFits, $width, $versionLength, $nameLength, $latestLength);