Skip to content

Commit

Permalink
Fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
fivefilters committed Jan 14, 2025
1 parent f131fcb commit 32f72f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Nodes/DOM/DOMNodeList.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function __get($name)
/**
* Add node to the list.
*/
public function add(DOMNode|DOMElement|DOMText|DOMComment $node): DOMNodeList
public function add(DOMNode|DOMElement|DOMText|DOMComment|DOMProcessingInstruction $node): DOMNodeList
{
$this->items[] = $node;
$this->length++;
Expand All @@ -53,7 +53,7 @@ public function add(DOMNode|DOMElement|DOMText|DOMComment $node): DOMNodeList
/**
* Get node.
*/
public function item(int $offset): DOMNode|DOMElement|DOMText|DOMComment
public function item(int $offset): DOMNode|DOMElement|DOMText|DOMComment|DOMProcessingInstruction
{
return $this->items[$offset];
}
Expand Down

0 comments on commit 32f72f1

Please sign in to comment.