From dfa7cb08cdcb141b8bb75dd1ee019c422ce3d4e7 Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Sat, 16 Mar 2024 17:57:49 +0100 Subject: [PATCH] Fix missing return value in grabArticle Not sure if this is expected but at least it works the same as before. --- src/Readability.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Readability.php b/src/Readability.php index aa49727..22b2ee1 100644 --- a/src/Readability.php +++ b/src/Readability.php @@ -1039,7 +1039,7 @@ class Readability implements LoggerAwareInterface foreach ($ancestors as $level => $ancestor) { if (!$ancestor->nodeName || !$ancestor->parentNode) { - return; + return false; } if (!$ancestor->hasAttribute('readability')) {