mirror of
https://github.com/erusev/parsedown.git
synced 2023-08-10 21:13:06 +03:00
Fix pre PHP7 closure-as-property closure syntax
This commit is contained in:
parent
e4ed4da626
commit
6f1bc7db14
@ -27,6 +27,8 @@ final class Handler implements StateRenderable
|
||||
*/
|
||||
public function renderable(State $State)
|
||||
{
|
||||
return ($this->closure)($State);
|
||||
$closure = $this->closure;
|
||||
|
||||
return $closure($State);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user