Add compatibility with PHP 8.1
This commit is contained in:
@ -280,7 +280,7 @@ class HelpManager implements CommandListener, CallbackListener, ManialinkPageAns
|
||||
* @param string $description
|
||||
* @param string $method
|
||||
*/
|
||||
public function registerCommand($name, $adminCommand = false, $description = '', $method) {
|
||||
public function registerCommand($name, $adminCommand = false, $description = '', $method = '') {
|
||||
// TODO replace with new class Command
|
||||
if ($adminCommand) {
|
||||
array_push($this->adminCommands, array("Name" => $name, "Description" => $description, "Method" => $method));
|
||||
|
Reference in New Issue
Block a user