Skip to content

Commit fabf096

Browse files
authored
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.
1 parent 8ce1663 commit fabf096

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Readability.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,9 @@ public function __construct($html, $url = null, $parser = 'libxml', $use_tidy =
187187
$this->loadHtml();
188188
}
189189

190+
/**
191+
* @return void
192+
*/
190193
public function setLogger(LoggerInterface $logger)
191194
{
192195
$this->logger = $logger;

0 commit comments

Comments
 (0)