mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-17 19:50:18 +00:00
Modernize private static property declarations
This commit is contained in:
2
src/network/mcpe/cache/ChunkCache.php
vendored
2
src/network/mcpe/cache/ChunkCache.php
vendored
@@ -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.
|
||||
|
@@ -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){
|
||||
|
Reference in New Issue
Block a user