mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2026-02-14 16:33:14 -05:00
Attributes: fix PHP 5.3 compatibilty issue
This commit is contained in:
parent
1f5ad6fa12
commit
c90b0f0eb1
1 changed files with 6 additions and 3 deletions
|
|
@ -153,12 +153,15 @@ class Attributes
|
|||
/**
|
||||
* Callback must return an instance of Attribute
|
||||
*
|
||||
* @param $name
|
||||
* @param $callback
|
||||
* @param string $name
|
||||
* @param callable $callback
|
||||
* @return $this
|
||||
*/
|
||||
public function registerCallbackFor($name, callable $callback)
|
||||
public function registerCallbackFor($name, $callback)
|
||||
{
|
||||
if (! is_callable($callback)) {
|
||||
throw new ProgrammingError('registerCallBack expects a callable callback');
|
||||
}
|
||||
$this->callbacks[$name] = $callback;
|
||||
return $this;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue