diff options
Diffstat (limited to 'lib/Scraper')
-rw-r--r-- | lib/Scraper/IScraper.php | 4 | ||||
-rw-r--r-- | lib/Scraper/Scraper.php | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/Scraper/IScraper.php b/lib/Scraper/IScraper.php index b389b79c9..687b9b02c 100644 --- a/lib/Scraper/IScraper.php +++ b/lib/Scraper/IScraper.php @@ -26,10 +26,10 @@ interface IScraper /** * Get the scraped content * - * @return string + * @return string|null * */ - public function getContent(): string; + public function getContent(): ?string; /** * Get the RTL (rigth-to-left) information diff --git a/lib/Scraper/Scraper.php b/lib/Scraper/Scraper.php index fedb0391c..a99416c63 100644 --- a/lib/Scraper/Scraper.php +++ b/lib/Scraper/Scraper.php @@ -83,7 +83,7 @@ class Scraper implements IScraper return true; } - public function getContent(): string + public function getContent(): ?string { if ($this->readability === null) { return null; |