From fabf096ce6fbde6ebe82957da1397bcfee68b7b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Benoist?= Date: Mon, 29 Nov 2021 20:50:10 +0100 Subject: [PATCH] Fix deprecated message > Method "Psr\Log\LoggerAwareInterface::setLogger()" might add "void" as a native return type declaration in the future. Do the same in implementation "Readability\Readability" now to avoid errors or add an explicit @return annotation to suppress this message. --- src/Readability.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Readability.php b/src/Readability.php index 1ed93ea..db2e27a 100644 --- a/src/Readability.php +++ b/src/Readability.php @@ -187,6 +187,9 @@ class Readability implements LoggerAwareInterface $this->loadHtml(); } + /** + * @return void + */ public function setLogger(LoggerInterface $logger) { $this->logger = $logger;