mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 08:17:34 +00:00
Modernize private property declarations in src/inventory/transaction
This commit is contained in:
parent
a06b9294df
commit
fb4d332d1a
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user