mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
Obligation of callable arguments
This commit is contained in:
parent
28048db141
commit
d90f317590
2 changed files with 6 additions and 9 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue