mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 01:46:04 +00:00
Modernize private property declarations in src/inventory/transaction
This commit is contained in:
@ -57,8 +57,8 @@ class CraftingTransaction extends InventoryTransaction{
|
||||
protected $inputs = [];
|
||||
/** @var Item[] */
|
||||
protected $outputs = [];
|
||||
/** @var CraftingManager */
|
||||
private $craftingManager;
|
||||
|
||||
private CraftingManager $craftingManager;
|
||||
|
||||
public function __construct(Player $source, CraftingManager $craftingManager, array $actions = []){
|
||||
parent::__construct($source, $actions);
|
||||
|
@ -36,8 +36,7 @@ class SlotChangeAction extends InventoryAction{
|
||||
|
||||
/** @var Inventory */
|
||||
protected $inventory;
|
||||
/** @var int */
|
||||
private $inventorySlot;
|
||||
private int $inventorySlot;
|
||||
|
||||
public function __construct(Inventory $inventory, int $inventorySlot, Item $sourceItem, Item $targetItem){
|
||||
parent::__construct($sourceItem, $targetItem);
|
||||
|
Reference in New Issue
Block a user