Modernize property type declarations

This commit is contained in:
Dylan K. Taylor
2022-06-04 18:16:32 +01:00
parent 23695fb900
commit 083a35f970
114 changed files with 431 additions and 863 deletions

View File

@ -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

View File

@ -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();