Skip to content

Commit a336aff

Browse files
committed
MC-16607: Fix Unrelated Static Test Failures
- fix static
1 parent 9379b1d commit a336aff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/PageBuilder/Plugin/Filter/TemplatePlugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ private function createDomDocument(string $html) : \DOMDocument
171171
$domDocument = new \DOMDocument('1.0', 'UTF-8');
172172
set_error_handler(
173173
function ($errorNumber, $errorString) {
174-
throw new \Exception($errorString, $errorNumber);
174+
throw new \DOMException($errorString, $errorNumber);
175175
}
176176
);
177177
$string = mb_convert_encoding($html, 'HTML-ENTITIES', 'UTF-8');

0 commit comments

Comments
 (0)