Skip to content

Commit 4e0742e

Browse files
author
Oleksandr Gorkun
committed
MC-17489: Require specific suffix for HTML binding
1 parent c36ef28 commit 4e0742e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dev/tests/static/framework/Magento/Sniffs/Html/HtmlBindingSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ private function loadHtmlDocument(int $stackPointer, File $file): ?\DOMDocument
3939
@$dom->loadHTML($html);
4040
return $dom;
4141
} catch (\Throwable $exception) {
42-
//Invalid HTML, skipping
42+
return null;
4343
}
4444
}
4545

0 commit comments

Comments
 (0)