BaseInventory: correctly annotate content type of slots field

fixes warnings on phpstan level 4
This commit is contained in:
Dylan K. Taylor 2019-12-12 11:58:00 +00:00
parent b3cfa5a3a0
commit 73c5fe5cf9

View File

@ -46,7 +46,7 @@ abstract class BaseInventory implements Inventory{
protected $name; protected $name;
/** @var string */ /** @var string */
protected $title; protected $title;
/** @var \SplFixedArray|Item[] */ /** @var \SplFixedArray|(Item|null)[] */
protected $slots; protected $slots;
/** @var Player[] */ /** @var Player[] */
protected $viewers = []; protected $viewers = [];