diff --git a/src/Parsing/Excerpt.php b/src/Parsing/Excerpt.php index 2da8c47..e1d08c9 100644 --- a/src/Parsing/Excerpt.php +++ b/src/Parsing/Excerpt.php @@ -22,6 +22,11 @@ final class Excerpt $this->context = $context; $this->offset = $offset; $this->text = \substr($context, $offset); + + // only necessary pre-php7 + if ($this->text === false) { + $this->text = ''; + } } /**