From 6f1bc7db1415c096c115250601673bbcfb4133a7 Mon Sep 17 00:00:00 2001 From: Aidan Woods Date: Sun, 20 Jan 2019 15:22:14 +0000 Subject: [PATCH] Fix pre PHP7 closure-as-property closure syntax --- src/AST/Handler.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/AST/Handler.php b/src/AST/Handler.php index 034e1dd..c64da20 100644 --- a/src/AST/Handler.php +++ b/src/AST/Handler.php @@ -27,6 +27,8 @@ final class Handler implements StateRenderable */ public function renderable(State $State) { - return ($this->closure)($State); + $closure = $this->closure; + + return $closure($State); } }