diff --git a/src/PHPHtmlParser/Dom/Node/AbstractNode.php b/src/PHPHtmlParser/Dom/Node/AbstractNode.php index 254ca31..a2c2927 100644 --- a/src/PHPHtmlParser/Dom/Node/AbstractNode.php +++ b/src/PHPHtmlParser/Dom/Node/AbstractNode.php @@ -154,9 +154,9 @@ public function id(): int /** * Returns the parent of node. * - * @return AbstractNode + * @return InnerNode */ - public function getParent() + public function getParent(): ?InnerNode { return $this->parent; }