1
0
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:
Aidan Woods 2019-01-20 15:22:14 +00:00
parent e4ed4da626
commit 6f1bc7db14
No known key found for this signature in database
GPG Key ID: 9A6A8EFAA512BBB9

View File

@ -27,6 +27,8 @@ final class Handler implements StateRenderable
*/
public function renderable(State $State)
{
return ($this->closure)($State);
$closure = $this->closure;
return $closure($State);
}
}