Skip to content

Commit e004bc8

Browse files
committed
Fix type error
1 parent 2cd2d3d commit e004bc8

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/Nodes/NodeUtility.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public static function setNodeTag(DOMNode|DOMElement $node, string $value, bool
9999
/**
100100
* Removes the current node and returns the next node to be parsed (child, sibling or parent).
101101
*/
102-
public static function removeAndGetNext(DOMNode|DOMComment|DOMText|DOMElement $node): DOMNode|DOMComment|DOMText|DOMElement|null
102+
public static function removeAndGetNext(DOMNode|DOMComment|DOMText|DOMElement|DOMProcessingInstruction $node): DOMNode|DOMComment|DOMText|DOMElement|DOMProcessingInstruction|null
103103
{
104104
$nextNode = self::getNextNode($node, true);
105105
$node->parentNode->removeChild($node);

src/Readability.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2065,7 +2065,7 @@ private function headerDuplicatesTitle(DOMNode|DOMText|DOMElement|DOMProcessingI
20652065
* Readability.js has a special filter to avoid cleaning the classes that the algorithm adds. We don't add classes
20662066
* here so no need to filter those.
20672067
**/
2068-
public function _cleanClasses(DOMDocument|DOMText|DOMNode|DOMElement $node): void
2068+
public function _cleanClasses(DOMDocument|DOMText|DOMNode|DOMElement|DOMProcessingInstruction $node): void
20692069
{
20702070
if ($node->hasAttribute('class')) {
20712071
$node->removeAttribute('class');

0 commit comments

Comments
 (0)