Browse Source

Remove publish errors from diagnose command output, fixes #4652

Jordi Boggiano 9 years ago
parent
commit
dc06276179
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/Composer/Command/DiagnoseCommand.php

+ 3 - 3
src/Composer/Command/DiagnoseCommand.php

@@ -141,11 +141,11 @@ EOT
     private function checkComposerSchema()
     {
         $validator = new ConfigValidator($this->getIO());
-        list($errors, $publishErrors, $warnings) = $validator->validate(Factory::getComposerFile());
+        list($errors, , $warnings) = $validator->validate(Factory::getComposerFile());
 
-        if ($errors || $publishErrors || $warnings) {
+        if ($errors || $warnings) {
             $messages = array(
-                'error' => array_merge($errors, $publishErrors),
+                'error' => $errors,
                 'warning' => $warnings,
             );