mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 02:42:58 +00:00
Use covariant types for InventoryHolder and Container implementors
This commit is contained in:
@ -41,7 +41,7 @@ class DoubleChestInventory extends BaseInventory implements BlockInventory, Inve
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
public function getInventory(){
|
||||
public function getInventory() : self{
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user