1
0
mirror of https://github.com/erusev/parsedown.git synced 2023-08-10 21:13:06 +03:00

Fix PHP 5.6 bug

This commit is contained in:
Aidan Woods 2019-01-20 19:03:57 +00:00
parent 6f1bc7db14
commit 37895448ba
No known key found for this signature in database
GPG Key ID: 9A6A8EFAA512BBB9

View File

@ -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 = '';
}
}
/**