From 2ca3cc7f722893e18d3bf62bd71a0f5629eba096 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 13 Aug 2016 23:47:58 -0400 Subject: Fix PHP 5.3 compatibility issue --- app/Helper/HookHelper.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/Helper/HookHelper.php b/app/Helper/HookHelper.php index e43cfdfd..24b7d00a 100644 --- a/app/Helper/HookHelper.php +++ b/app/Helper/HookHelper.php @@ -2,6 +2,7 @@ namespace Kanboard\Helper; +use Closure; use Kanboard\Core\Base; /** @@ -87,10 +88,10 @@ class HookHelper extends Base * @access public * @param string $hook * @param string $template - * @param callable $callable + * @param Closure $callable * @return $this */ - public function attachCallable($hook, $template, callable $callable) + public function attachCallable($hook, $template, Closure $callable) { $this->hook->on($hook, array( 'template' => $template, -- cgit v1.2.3