diff --git a/src/pocketmine/command/Command.php b/src/pocketmine/command/Command.php index d0e07587f..8b891ac82 100644 --- a/src/pocketmine/command/Command.php +++ b/src/pocketmine/command/Command.php @@ -329,7 +329,7 @@ abstract class Command{ /** * @return array */ - public static final function generateDefaultData() : array{ + final public static function generateDefaultData() : array{ if(self::$defaultDataTemplate === null){ self::$defaultDataTemplate = json_decode(file_get_contents(Server::getInstance()->getFilePath() . "src/pocketmine/resources/command_default.json"), true); } diff --git a/src/pocketmine/level/format/io/ChunkUtils.php b/src/pocketmine/level/format/io/ChunkUtils.php index f89994ae8..e9e35e8ce 100644 --- a/src/pocketmine/level/format/io/ChunkUtils.php +++ b/src/pocketmine/level/format/io/ChunkUtils.php @@ -32,7 +32,7 @@ class ChunkUtils{ * * @return string length 4096 */ - public static final function reorderByteArray(string $array) : string{ + final public static function reorderByteArray(string $array) : string{ $result = str_repeat("\x00", 4096); if($array !== $result){ $i = 0; @@ -59,7 +59,7 @@ class ChunkUtils{ * * @return string length 2048 */ - public static final function reorderNibbleArray(string $array, string $commonValue = "\x00") : string{ + final public static function reorderNibbleArray(string $array, string $commonValue = "\x00") : string{ $result = str_repeat($commonValue, 2048); if($array !== $result){