mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-14 15:35:31 +00:00
Modernize property declarations in src/
This commit is contained in:
parent
0e7e776862
commit
46c504e529
@ -33,16 +33,14 @@ use function strtolower;
|
|||||||
|
|
||||||
final class ServerConfigGroup{
|
final class ServerConfigGroup{
|
||||||
|
|
||||||
/** @var Config */
|
private Config $pocketmineYml;
|
||||||
private $pocketmineYml;
|
private Config $serverProperties;
|
||||||
/** @var Config */
|
|
||||||
private $serverProperties;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var mixed[]
|
* @var mixed[]
|
||||||
* @phpstan-var array<string, mixed>
|
* @phpstan-var array<string, mixed>
|
||||||
*/
|
*/
|
||||||
private $propertyCache = [];
|
private array $propertyCache = [];
|
||||||
|
|
||||||
public function __construct(Config $pocketmineYml, Config $serverProperties){
|
public function __construct(Config $pocketmineYml, Config $serverProperties){
|
||||||
$this->pocketmineYml = $pocketmineYml;
|
$this->pocketmineYml = $pocketmineYml;
|
||||||
|
@ -39,8 +39,7 @@ final class VersionInfo{
|
|||||||
//NOOP
|
//NOOP
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @var string|null */
|
private static ?string $gitHash = null;
|
||||||
private static $gitHash = null;
|
|
||||||
|
|
||||||
public static function GIT_HASH() : string{
|
public static function GIT_HASH() : string{
|
||||||
if(self::$gitHash === null){
|
if(self::$gitHash === null){
|
||||||
@ -79,8 +78,7 @@ final class VersionInfo{
|
|||||||
return self::$buildNumber;
|
return self::$buildNumber;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @var VersionString|null */
|
private static ?VersionString $fullVersion = null;
|
||||||
private static $fullVersion = null;
|
|
||||||
|
|
||||||
public static function VERSION() : VersionString{
|
public static function VERSION() : VersionString{
|
||||||
if(self::$fullVersion === null){
|
if(self::$fullVersion === null){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user