Modernize property declarations in src/

This commit is contained in:
Dylan K. Taylor 2022-04-28 13:14:23 +01:00
parent 0e7e776862
commit 46c504e529
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D
2 changed files with 5 additions and 9 deletions

View File

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

View File

@ -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){