Fixed object callable PHP 5.3

This commit is contained in:
Shoghi Cervantes Pueyo
2012-12-26 16:25:22 +01:00
parent cae6285f64
commit 5042289ff7
2 changed files with 16 additions and 4 deletions

View File

@ -221,7 +221,10 @@ class ConsoleAPI{
}
}
public function register($cmd, $help,callable $callback){
public function register($cmd, $help,$callback){
if(!is_callable($callback)){
return false;
}
$this->help[strtolower(trim($cmd))] = array($help, $callback);
}