We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b582541 commit 49ee59cCopy full SHA for 49ee59c
1 file changed
src/Utils/XML.php
@@ -52,6 +52,7 @@ public static function canonicalizeData(
52
if (
53
is_null($xpaths)
54
&& ($element->ownerDocument !== null)
55
+ && ($element->ownerDocument->documentElement !== null)
56
&& $element->isSameNode($element->ownerDocument->documentElement)
57
) {
58
// check for any PI or comments as they would have been excluded
@@ -65,7 +66,7 @@ public static function canonicalizeData(
65
66
}
67
$current = $refNode;
68
- if ($refNode == null) {
69
+ if ($refNode === null) {
70
$element = $element->ownerDocument;
71
72
0 commit comments