Fix PHP 5.3 compatibility issue
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
namespace Kanboard\Helper;
|
namespace Kanboard\Helper;
|
||||||
|
|
||||||
|
use Closure;
|
||||||
use Kanboard\Core\Base;
|
use Kanboard\Core\Base;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -87,10 +88,10 @@ class HookHelper extends Base
|
|||||||
* @access public
|
* @access public
|
||||||
* @param string $hook
|
* @param string $hook
|
||||||
* @param string $template
|
* @param string $template
|
||||||
* @param callable $callable
|
* @param Closure $callable
|
||||||
* @return $this
|
* @return $this
|
||||||
*/
|
*/
|
||||||
public function attachCallable($hook, $template, callable $callable)
|
public function attachCallable($hook, $template, Closure $callable)
|
||||||
{
|
{
|
||||||
$this->hook->on($hook, array(
|
$this->hook->on($hook, array(
|
||||||
'template' => $template,
|
'template' => $template,
|
||||||
|
|||||||
Reference in New Issue
Block a user