Modernize property declarations in pocketmine\command namespace

This commit is contained in:
Dylan K. Taylor
2022-04-25 13:09:14 +01:00
parent 72cff0ee11
commit dca457b1e0
4 changed files with 11 additions and 24 deletions

View File

@@ -84,11 +84,7 @@ class SimpleCommandMap implements CommandMap{
/** @var Command[] */
protected $knownCommands = [];
/** @var Server */
private $server;
public function __construct(Server $server){
$this->server = $server;
public function __construct(private Server $server){
$this->setDefaultCommands();
}