From 83798d80908a413882c1d12b8b5ddaeb5eb4f0c3 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Thu, 13 Apr 2017 23:13:11 +0200 Subject: [PATCH] Avoid mixing stderr and stdout in outdated command as it mangles output --- src/Composer/Command/ShowCommand.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Composer/Command/ShowCommand.php b/src/Composer/Command/ShowCommand.php index 358b0f28f..bdc9f703c 100644 --- a/src/Composer/Command/ShowCommand.php +++ b/src/Composer/Command/ShowCommand.php @@ -445,11 +445,10 @@ EOT if (isset($package['path'])) { $io->write(' ' . $package['path'], false); } + $io->write(''); if (isset($package['warning'])) { - $io->writeError(''); - $io->writeError('' . $package['warning'] . '', false); + $io->write('' . $package['warning'] . ''); } - $io->write(''); } if ($showAllTypes) {