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:
@@ -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 = '';
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user