mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-11 05:55:33 +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 = [];
|
protected $inputs = [];
|
||||||
/** @var Item[] */
|
/** @var Item[] */
|
||||||
protected $outputs = [];
|
protected $outputs = [];
|
||||||
/** @var CraftingManager */
|
|
||||||
private $craftingManager;
|
private CraftingManager $craftingManager;
|
||||||
|
|
||||||
public function __construct(Player $source, CraftingManager $craftingManager, array $actions = []){
|
public function __construct(Player $source, CraftingManager $craftingManager, array $actions = []){
|
||||||
parent::__construct($source, $actions);
|
parent::__construct($source, $actions);
|
||||||
|
@ -36,8 +36,7 @@ class SlotChangeAction extends InventoryAction{
|
|||||||
|
|
||||||
/** @var Inventory */
|
/** @var Inventory */
|
||||||
protected $inventory;
|
protected $inventory;
|
||||||
/** @var int */
|
private int $inventorySlot;
|
||||||
private $inventorySlot;
|
|
||||||
|
|
||||||
public function __construct(Inventory $inventory, int $inventorySlot, Item $sourceItem, Item $targetItem){
|
public function __construct(Inventory $inventory, int $inventorySlot, Item $sourceItem, Item $targetItem){
|
||||||
parent::__construct($sourceItem, $targetItem);
|
parent::__construct($sourceItem, $targetItem);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user