From fae4e788450a0d6ff9ef619d67b2b77f8c5d1bd2 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 290cc28..b8c8898 100644 --- a/src/Readability.php +++ b/src/Readability.php @@ -1044,7 +1044,7 @@ class Readability implements LoggerAwareInterface foreach ($ancestors as $level => $ancestor) { if (!$ancestor->nodeName || !$ancestor->parentNode) { - return; + return false; } if (!$ancestor->hasAttribute('readability')) {