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.
This commit is contained in:
Jérémy Benoist
2021-11-29 20:50:10 +01:00
committed by GitHub
parent 8ce1663238
commit fabf096ce6
+3
View File
@@ -187,6 +187,9 @@ class Readability implements LoggerAwareInterface
$this->loadHtml(); $this->loadHtml();
} }
/**
* @return void
*/
public function setLogger(LoggerInterface $logger) public function setLogger(LoggerInterface $logger)
{ {
$this->logger = $logger; $this->logger = $logger;