From dc0627617935da9208124e580b9f0e39dd214ae5 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Tue, 1 Dec 2015 14:57:07 +0000 Subject: [PATCH] Remove publish errors from diagnose command output, fixes #4652 --- src/Composer/Command/DiagnoseCommand.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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, );