mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 18:32:55 +00:00
Modernize property type declarations
This commit is contained in:
@ -55,22 +55,21 @@ use function spl_object_id;
|
||||
* @see InventoryAction
|
||||
*/
|
||||
class InventoryTransaction{
|
||||
/** @var bool */
|
||||
protected $hasExecuted = false;
|
||||
/** @var Player */
|
||||
protected $source;
|
||||
protected bool $hasExecuted = false;
|
||||
|
||||
/** @var Inventory[] */
|
||||
protected $inventories = [];
|
||||
protected array $inventories = [];
|
||||
|
||||
/** @var InventoryAction[] */
|
||||
protected $actions = [];
|
||||
protected array $actions = [];
|
||||
|
||||
/**
|
||||
* @param InventoryAction[] $actions
|
||||
*/
|
||||
public function __construct(Player $source, array $actions = []){
|
||||
$this->source = $source;
|
||||
public function __construct(
|
||||
protected Player $source,
|
||||
array $actions = []
|
||||
){
|
||||
foreach($actions as $action){
|
||||
$this->addAction($action);
|
||||
}
|
||||
|
Reference in New Issue
Block a user