We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 53025a7 commit e2d5b2cCopy full SHA for e2d5b2c
src/Readability.php
@@ -23,8 +23,8 @@ public function parse(string $content): self
23
$this->content->parse($content);
24
} catch (ParseException $e) {
25
$this->content = null;
26
- error_log('Cannot parse: '.$e->getMessage());
27
- throw new Exception('Cannot parse: '.$e->getMessage());
+ error_log('Cannot parse: ' . $e->getMessage());
+ throw new Exception('Cannot parse: ' . $e->getMessage());
28
}
29
30
return $this;
@@ -47,7 +47,7 @@ public function getTitle(): string
47
*
48
* @throws Exception
49
*/
50
- public function getExcerpt(): string
+ public function getExcerpt(): ?string
51
{
52
$this->checkContent();
53
0 commit comments