Skip to content

Commit 5a42fae

Browse files
committed
improve sanity check
1 parent 065470c commit 5a42fae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Utils.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public static function getFormatedXml($string, $asDomDocument = false)
1616
{
1717
$dom = null;
1818
$formated = $string;
19-
if (!empty($string) && class_exists('DOMDocument')) {
19+
if (!empty($string) && class_exists('\DOMDocument')) {
2020
$dom = new \DOMDocument('1.0', 'UTF-8');
2121
$dom->formatOutput = true;
2222
$dom->preserveWhiteSpace = false;

0 commit comments

Comments
 (0)