mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 08:17:34 +00:00
BaseInventory: mark eventProcessor as nullable, fixes a phpstan level 8 error
This commit is contained in:
parent
0f6dc9082a
commit
c5ad127854
@ -53,7 +53,7 @@ abstract class BaseInventory implements Inventory{
|
||||
protected $slots;
|
||||
/** @var Player[] */
|
||||
protected $viewers = [];
|
||||
/** @var InventoryEventProcessor */
|
||||
/** @var InventoryEventProcessor|null */
|
||||
protected $eventProcessor;
|
||||
|
||||
/**
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user