mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-13 13:25:16 +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;
|
protected $slots;
|
||||||
/** @var Player[] */
|
/** @var Player[] */
|
||||||
protected $viewers = [];
|
protected $viewers = [];
|
||||||
/** @var InventoryEventProcessor */
|
/** @var InventoryEventProcessor|null */
|
||||||
protected $eventProcessor;
|
protected $eventProcessor;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -985,11 +985,6 @@ parameters:
|
|||||||
count: 2
|
count: 2
|
||||||
path: ../../../src/pocketmine/event/entity/EntityDamageByEntityEvent.php
|
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\\.$#"
|
message: "#^Method pocketmine\\\\inventory\\\\CraftingManager\\:\\:getCraftingDataPacket\\(\\) should return pocketmine\\\\network\\\\mcpe\\\\protocol\\\\BatchPacket but returns pocketmine\\\\network\\\\mcpe\\\\protocol\\\\BatchPacket\\|null\\.$#"
|
||||||
count: 1
|
count: 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user