Obligation of callable arguments

This commit is contained in:
Shoghi Cervantes Pueyo
2012-12-26 13:46:09 +01:00
parent 28048db141
commit d90f317590
2 changed files with 6 additions and 9 deletions

View File

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