From c9c13321f095dd442c4b4a7db140775bc025a14b Mon Sep 17 00:00:00 2001 From: Andres Rey Date: Wed, 16 Nov 2016 17:42:16 +0000 Subject: Fixed duplication of initialization --- src/Readability.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Readability.php') diff --git a/src/Readability.php b/src/Readability.php index 930e141..addbd0d 100644 --- a/src/Readability.php +++ b/src/Readability.php @@ -88,7 +88,7 @@ class Readability extends Element implements ReadabilityInterface $node = $this->getParent(); while ($node) { - $ancestors[] = new static($node->node); + $ancestors[] = $node; $level++; if ($level >= $maxLevel) { break; -- cgit v1.2.3