From 8e767da29ea4332257d2027c8a3d5dba9c151e7b Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Tue, 17 May 2022 21:55:57 +0100 Subject: [PATCH] Modernize some final remaining private property declarations --- src/updater/UpdateChecker.php | 3 +-- src/wizard/SetupWizard.php | 11 ++++------- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/src/updater/UpdateChecker.php b/src/updater/UpdateChecker.php index 9c530dedb..298704a5a 100644 --- a/src/updater/UpdateChecker.php +++ b/src/updater/UpdateChecker.php @@ -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; diff --git a/src/wizard/SetupWizard.php b/src/wizard/SetupWizard.php index ae0ecb17d..3d29e3e2f 100644 --- a/src/wizard/SetupWizard.php +++ b/src/wizard/SetupWizard.php @@ -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");