mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-05 11:27:07 +00:00
Fix dodgy ignored PHPStan error
This commit is contained in:
parent
82c416624d
commit
c63d0ef1b6
@ -364,6 +364,7 @@ class InventoryManager{
|
|||||||
FurnaceType::FURNACE => WindowTypes::FURNACE,
|
FurnaceType::FURNACE => WindowTypes::FURNACE,
|
||||||
FurnaceType::BLAST_FURNACE => WindowTypes::BLAST_FURNACE,
|
FurnaceType::BLAST_FURNACE => WindowTypes::BLAST_FURNACE,
|
||||||
FurnaceType::SMOKER => WindowTypes::SMOKER,
|
FurnaceType::SMOKER => WindowTypes::SMOKER,
|
||||||
|
FurnaceType::CAMPFIRE, FurnaceType::SOUL_CAMPFIRE => throw new \LogicException("Campfire inventory cannot be displayed to a player")
|
||||||
},
|
},
|
||||||
$inv instanceof EnchantInventory => WindowTypes::ENCHANTMENT,
|
$inv instanceof EnchantInventory => WindowTypes::ENCHANTMENT,
|
||||||
$inv instanceof BrewingStandInventory => WindowTypes::BREWING_STAND,
|
$inv instanceof BrewingStandInventory => WindowTypes::BREWING_STAND,
|
||||||
|
@ -580,11 +580,6 @@ parameters:
|
|||||||
count: 1
|
count: 1
|
||||||
path: ../../../src/network/mcpe/ChunkRequestTask.php
|
path: ../../../src/network/mcpe/ChunkRequestTask.php
|
||||||
|
|
||||||
-
|
|
||||||
message: "#^Match expression does not handle remaining values\\: pocketmine\\\\crafting\\\\FurnaceType\\:\\:CAMPFIRE\\|pocketmine\\\\crafting\\\\FurnaceType\\:\\:SOUL_CAMPFIRE$#"
|
|
||||||
count: 1
|
|
||||||
path: ../../../src/network/mcpe/InventoryManager.php
|
|
||||||
|
|
||||||
-
|
-
|
||||||
message: "#^Cannot call method doFirstSpawn\\(\\) on pocketmine\\\\player\\\\Player\\|null\\.$#"
|
message: "#^Cannot call method doFirstSpawn\\(\\) on pocketmine\\\\player\\\\Player\\|null\\.$#"
|
||||||
count: 1
|
count: 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user