Skip to content

Commit 63463c4

Browse files
committed
merged branch instaclick/ignore-validation-exception (PR symfony#4748)
Commits ------- 383efdf Ignore validation exception so we get a more informative error message from $this->getXmlErrors(). Discussion ---------- Ignore validation exception so we get a more informative error message Ignore validation exception so we get a more informative error message from $this->getXmlErrors(). This is consistent with https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Translation/Loader/XliffFileLoader.php#L82
2 parents 000d54c + 383efdf commit 63463c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ private function validateSchema(\DOMDocument $dom, $file)
345345
;
346346

347347
$current = libxml_use_internal_errors(true);
348-
$valid = $dom->schemaValidateSource($source);
348+
$valid = @$dom->schemaValidateSource($source);
349349
foreach ($tmpfiles as $tmpfile) {
350350
@unlink($tmpfile);
351351
}

0 commit comments

Comments
 (0)