diff --git a/src/pocketmine/inventory/BaseInventory.php b/src/pocketmine/inventory/BaseInventory.php index 434495cfc..dc6dc87e4 100644 --- a/src/pocketmine/inventory/BaseInventory.php +++ b/src/pocketmine/inventory/BaseInventory.php @@ -53,7 +53,7 @@ abstract class BaseInventory implements Inventory{ protected $slots; /** @var Player[] */ protected $viewers = []; - /** @var InventoryEventProcessor */ + /** @var InventoryEventProcessor|null */ protected $eventProcessor; /** diff --git a/tests/phpstan/configs/l8-baseline.neon b/tests/phpstan/configs/l8-baseline.neon index 241359db4..fe72e6065 100644 --- a/tests/phpstan/configs/l8-baseline.neon +++ b/tests/phpstan/configs/l8-baseline.neon @@ -985,11 +985,6 @@ parameters: count: 2 path: ../../../src/pocketmine/event/entity/EntityDamageByEntityEvent.php - - - message: "#^Property pocketmine\\\\inventory\\\\BaseInventory\\:\\:\\$eventProcessor \\(pocketmine\\\\inventory\\\\InventoryEventProcessor\\) does not accept pocketmine\\\\inventory\\\\InventoryEventProcessor\\|null\\.$#" - count: 1 - path: ../../../src/pocketmine/inventory/BaseInventory.php - - message: "#^Method pocketmine\\\\inventory\\\\CraftingManager\\:\\:getCraftingDataPacket\\(\\) should return pocketmine\\\\network\\\\mcpe\\\\protocol\\\\BatchPacket but returns pocketmine\\\\network\\\\mcpe\\\\protocol\\\\BatchPacket\\|null\\.$#" count: 1