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

PHP < 7 compat

This commit is contained in:
Aidan Woods 2019-01-30 20:04:47 +00:00
parent c49d40027f
commit cb211a88a8
No known key found for this signature in database
GPG Key ID: 9A6A8EFAA512BBB9

View File

@ -27,7 +27,9 @@ final class Parsedown
public function __construct(StateBearer $StateBearer = null)
{
$this->State = ($StateBearer ?: new State)->state();
$StateBearer = $StateBearer ?: new State;
$this->State = $StateBearer->state();
}
/**