Skip to content

Commit 3dd2911

Browse files
committed
Fix implicit array to bool cast
1 parent 135bf21 commit 3dd2911

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Signature.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1052,7 +1052,7 @@ protected function processReference(DOMElement $ref): bool
10521052
$includeCommentNodes = false;
10531053

10541054
$xp = XP::getXPath($ref->ownerDocument);
1055-
if ($this->idNS && is_array($this->idNS)) {
1055+
if (!empty($this->idNS) && is_array($this->idNS)) {
10561056
foreach ($this->idNS as $nspf => $ns) {
10571057
$xp->registerNamespace($nspf, $ns);
10581058
}

0 commit comments

Comments
 (0)