Fix PHP 5.3 compatibility issue

This commit is contained in:
Frederic Guillot 2016-08-13 23:47:58 -04:00
parent 58b3fd7d8a
commit 2ca3cc7f72
No known key found for this signature in database
GPG Key ID: 92D77191BA7FBC99
1 changed files with 3 additions and 2 deletions

View File

@ -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,