Skip to content

Commit 027e294

Browse files
committed
Fix test to match previous behaviour
Update annotation
1 parent 73d8aaf commit 027e294

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/AbstractDomDocumentHandler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function __construct(DOMDocument $domDocument)
2424
}
2525

2626
/**
27-
* @param DOMAttr|DOMElement|DOMNode $node
27+
* @param DOMAttr|DOMElement|DOMNode|DOMNameSpaceNode $node
2828
*/
2929
public function getHandler($node, int $index = -1): AbstractNodeHandler
3030
{
@@ -92,7 +92,7 @@ public function getElementsByNameAndAttributes(string $name, array $attributes,
9292
if ((!empty($attributes) || $node instanceof DOMNode) && !empty($matchingElements)) {
9393
$nodes = $this->searchTagsByXpath($name, $attributes, $node);
9494

95-
if ($nodes && 0 < $nodes->count()) {
95+
if (false !== $nodes) {
9696
$matchingElements = $this->getElementsHandlers($nodes);
9797
}
9898
}

0 commit comments

Comments
 (0)