Modernize private static property declarations

This commit is contained in:
Dylan K. Taylor
2022-05-17 21:55:16 +01:00
parent 1d5430937f
commit c0b15de504
6 changed files with 7 additions and 11 deletions

View File

@@ -39,7 +39,7 @@ use function strlen;
*/
class ChunkCache implements ChunkListener{
/** @var self[][] */
private static $instances = [];
private static array $instances = [];
/**
* Fetches the ChunkCache instance for the given world. This lazily creates cache systems as needed.

View File

@@ -27,8 +27,7 @@ namespace pocketmine\network\mcpe\convert;
* Accessor for SkinAdapter
*/
class SkinAdapterSingleton{
/** @var SkinAdapter|null */
private static $skinAdapter = null;
private static ?SkinAdapter $skinAdapter = null;
public static function get() : SkinAdapter{
if(self::$skinAdapter === null){