mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 10:22:56 +00:00
Obligation of callable arguments
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user