diff --git a/src/Composer/Command/DiagnoseCommand.php b/src/Composer/Command/DiagnoseCommand.php index 90b9e8efc..e37bfd4f1 100644 --- a/src/Composer/Command/DiagnoseCommand.php +++ b/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, );