Browse Source

Avoid mixing stderr and stdout in outdated command as it mangles output

Jordi Boggiano 8 years ago
parent
commit
83798d8090
1 changed files with 2 additions and 3 deletions
  1. 2 3
      src/Composer/Command/ShowCommand.php

+ 2 - 3
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('<warning>' . $package['warning'] . '</warning>', false);
+                        $io->write('<warning>' . $package['warning'] . '</warning>');
                     }
-                    $io->write('');
                 }
 
                 if ($showAllTypes) {