소스 검색

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

Jordi Boggiano 8 년 전
부모
커밋
83798d8090
1개의 변경된 파일2개의 추가작업 그리고 3개의 파일을 삭제
  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) {