Skip to content

Commit 468fe01

Browse files
author
Dmitry Kologrivov
committed
Merge branch 'MA-44227' into 'master3'
PV-5: Change validating schema See merge request !144
2 parents 6009c2d + 02eca9b commit 468fe01

File tree

1 file changed

+1
-5
lines changed
  • lib/internal/Magento/Framework/Config

1 file changed

+1
-5
lines changed

lib/internal/Magento/Framework/Config/Dom.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -274,11 +274,7 @@ public static function validateDomDocument(
274274
$schema = self::$urnResolver->getRealPath($schema);
275275
libxml_use_internal_errors(true);
276276
try {
277-
if (file_exists($schema)) {
278-
$result = $dom->schemaValidate($schema);
279-
} else {
280-
$result = $dom->schemaValidateSource($schema);
281-
}
277+
$result = $dom->schemaValidate($schema);
282278
$errors = [];
283279
if (!$result) {
284280
$validationErrors = libxml_get_errors();

0 commit comments

Comments
 (0)