summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-08-13 23:47:58 -0400
committerFrederic Guillot <fred@kanboard.net>2016-08-13 23:47:58 -0400
commit2ca3cc7f722893e18d3bf62bd71a0f5629eba096 (patch)
tree03c03269bdb54a8175ac01d3744e85e18a5317ee
parent58b3fd7d8ab4b5cb4bfad54d3b0c5492b7c38208 (diff)
Fix PHP 5.3 compatibility issue
-rw-r--r--app/Helper/HookHelper.php5
1 files 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,