diff options
author | Petros Koutsolampros <2184600+orange-vertex@users.noreply.github.com> | 2020-01-07 15:57:19 +0200 |
---|---|---|
committer | Benjamin Brahmer <info@b-brahmer.de> | 2020-01-07 14:57:19 +0100 |
commit | d27dddad25b1333f531377b5699e0be8fa1896ea (patch) | |
tree | 2b5897f52b627b28aec66c4e2a4b1cea3f853f9a /lib/Scraper | |
parent | d92a2c94550461b5806a175eb631412629d1fa34 (diff) |
Allow getContent() in Scraper and IScraper to return null (#606)
Allow getContent() in Scraper and IScraper to return null
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; |