mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-16 03:51:37 +00:00
Use covariant types for InventoryHolder and Container implementors
This commit is contained in:
@@ -189,10 +189,7 @@ class Human extends Living implements ProjectileSource, InventoryHolder{
|
||||
return min(100, 7 * $this->xpManager->getXpLevel());
|
||||
}
|
||||
|
||||
/**
|
||||
* @return PlayerInventory
|
||||
*/
|
||||
public function getInventory(){
|
||||
public function getInventory() : PlayerInventory{
|
||||
return $this->inventory;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user