Modernize some final remaining private property declarations

This commit is contained in:
Dylan K. Taylor 2022-05-17 21:55:57 +01:00
parent c0b15de504
commit 8e767da29e
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D
2 changed files with 5 additions and 9 deletions

View File

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

View File

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