Explorar o código

Always read out warnings from the ValidatingArrayLoader

Jordi Boggiano %!s(int64=12) %!d(string=hai) anos
pai
achega
25554e08fe
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      src/Composer/Util/ConfigValidator.php

+ 2 - 1
src/Composer/Util/ConfigValidator.php

@@ -107,9 +107,10 @@ class ConfigValidator
             $loader->load($manifest);
         } catch (InvalidPackageException $e) {
             $errors = array_merge($errors, $e->getErrors());
-            $warnings = array_merge($warnings, $e->getWarnings());
         }
 
+        $warnings = array_merge($warnings, $loader->getWarnings());
+
         return array($errors, $publishErrors, $warnings);
     }
 }