diff --git a/lib/internal/Magento/Framework/View/Model/Layout/Merge.php b/lib/internal/Magento/Framework/View/Model/Layout/Merge.php index dbd6cc1ea548d..795e03bc8b40a 100644 --- a/lib/internal/Magento/Framework/View/Model/Layout/Merge.php +++ b/lib/internal/Magento/Framework/View/Model/Layout/Merge.php @@ -1,7 +1,7 @@ updates as $update) { - $updateXml = null; - - try { - $updateXml = is_string($update) ? $this->_loadXmlString($update) : false; - // phpcs:ignore Magento2.CodeAnalysis.EmptyBlock - } catch (\Exception $exception) { - // ignore invalid - } - + $updateXml = is_string($update) ? $this->_safeLoadXmlString($update) : false; if ($updateXml && strtolower($updateXml->getName()) == 'update' && isset($updateXml['handle'])) { $this->addHandle((string)$updateXml['handle']); }