RuntimeBlockMapping: remove unnecessary nullable flag

This commit is contained in:
Dylan K. Taylor 2020-06-17 21:32:51 +01:00
parent 715fca8986
commit 333ed8ed2f
2 changed files with 1 additions and 6 deletions

View File

@ -160,7 +160,7 @@ final class RuntimeBlockMapping{
/**
* @phpstan-return CacheableNbt<\pocketmine\nbt\tag\ListTag>
*/
public function getStartGamePaletteCache() : ?CacheableNbt{
public function getStartGamePaletteCache() : CacheableNbt{
return $this->startGamePaletteCache ?? new CacheableNbt(new ListTag($this->bedrockKnownStates));
}
}

View File

@ -485,11 +485,6 @@ parameters:
count: 1
path: ../../../src/network/mcpe/encryption/PrepareEncryptionTask.php
-
message: "#^Property pocketmine\\\\network\\\\mcpe\\\\protocol\\\\StartGamePacket\\:\\:\\$blockTable \\(pocketmine\\\\network\\\\mcpe\\\\protocol\\\\types\\\\CacheableNbt\\<pocketmine\\\\nbt\\\\tag\\\\ListTag\\>\\) does not accept pocketmine\\\\network\\\\mcpe\\\\protocol\\\\types\\\\CacheableNbt\\<pocketmine\\\\nbt\\\\tag\\\\ListTag\\>\\|null\\.$#"
count: 1
path: ../../../src/network/mcpe/handler/PreSpawnPacketHandler.php
-
message: "#^Property pocketmine\\\\network\\\\mcpe\\\\protocol\\\\LevelSoundEventPacket\\:\\:\\$position \\(pocketmine\\\\math\\\\Vector3\\) does not accept pocketmine\\\\math\\\\Vector3\\|null\\.$#"
count: 1