mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-28 06:09:57 +00:00
Human::getInventory(): explicitly declare return type
the lack of this causes type inference bugs and documentation problems. thanks PHPStan
This commit is contained in:
parent
bb05cfb36c
commit
f347345bb3
@ -587,6 +587,9 @@ class Human extends Creature implements ProjectileSource, InventoryHolder{
|
||||
return (int) min(100, 7 * $this->getXpLevel());
|
||||
}
|
||||
|
||||
/**
|
||||
* @return PlayerInventory
|
||||
*/
|
||||
public function getInventory(){
|
||||
return $this->inventory;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user