mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 02:42:58 +00:00
Modernize property type declarations
This commit is contained in:
@ -53,17 +53,14 @@ abstract class Command{
|
||||
|
||||
private ?CommandMap $commandMap = null;
|
||||
|
||||
/** @var Translatable|string */
|
||||
protected $description = "";
|
||||
protected Translatable|string $description = "";
|
||||
|
||||
/** @var Translatable|string */
|
||||
protected $usageMessage;
|
||||
protected Translatable|string $usageMessage;
|
||||
|
||||
private ?string $permission = null;
|
||||
private ?string $permissionMessage = null;
|
||||
|
||||
/** @var TimingsHandler|null */
|
||||
public $timings = null;
|
||||
public ?TimingsHandler $timings = null;
|
||||
|
||||
/**
|
||||
* @param string[] $aliases
|
||||
|
@ -80,7 +80,7 @@ use function trim;
|
||||
class SimpleCommandMap implements CommandMap{
|
||||
|
||||
/** @var Command[] */
|
||||
protected $knownCommands = [];
|
||||
protected array $knownCommands = [];
|
||||
|
||||
public function __construct(private Server $server){
|
||||
$this->setDefaultCommands();
|
||||
|
Reference in New Issue
Block a user