mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-20 16:00:20 +00:00
Modernize some final remaining private property declarations
This commit is contained in:
parent
c0b15de504
commit
8e767da29e
@ -40,8 +40,7 @@ class UpdateChecker{
|
||||
/** @var UpdateInfo|null */
|
||||
protected $updateInfo = null;
|
||||
|
||||
/** @var \Logger */
|
||||
private $logger;
|
||||
private \Logger $logger;
|
||||
|
||||
public function __construct(Server $server, string $endpoint){
|
||||
$this->server = $server;
|
||||
|
@ -52,14 +52,11 @@ class SetupWizard{
|
||||
public const DEFAULT_PORT = Server::DEFAULT_PORT_IPV4;
|
||||
public const DEFAULT_PLAYERS = Server::DEFAULT_MAX_PLAYERS;
|
||||
|
||||
/** @var Language */
|
||||
private $lang;
|
||||
/** @var string */
|
||||
private $dataPath;
|
||||
private Language $lang;
|
||||
|
||||
public function __construct(string $dataPath){
|
||||
$this->dataPath = $dataPath;
|
||||
}
|
||||
public function __construct(
|
||||
private string $dataPath
|
||||
){}
|
||||
|
||||
public function run() : bool{
|
||||
$this->message(VersionInfo::NAME . " set-up wizard");
|
||||
|
Loading…
x
Reference in New Issue
Block a user