From 81f3efbb84eadba729bb6cb37ee9fca6825b37d1 Mon Sep 17 00:00:00 2001 From: "behrooz shabani (everplays)" Date: Thu, 27 Mar 2014 12:03:17 +0430 Subject: [PATCH] helpers with style of array(Object, methodName) Previously we had them working. So for the sake's of backward compatibility, they should be supported. --- src/Handlebars/Helpers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Handlebars/Helpers.php b/src/Handlebars/Helpers.php index c5046b0..5bf62dd 100644 --- a/src/Handlebars/Helpers.php +++ b/src/Handlebars/Helpers.php @@ -129,7 +129,7 @@ class Helpers ); } - return $this->helpers[$name]($template, $context, $args, $source); + return call_user_func($this->helpers[$name], $template, $context, $args, $source); } /**