1
0
mirror of https://github.com/erusev/parsedown.git synced 2025-09-08 13:50:53 +02: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

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