Human::getInventory(): explicitly declare return type

the lack of this causes type inference bugs and documentation problems.
thanks PHPStan
This commit is contained in:
Dylan K. Taylor 2019-10-21 15:25:57 +01:00
parent bb05cfb36c
commit f347345bb3

View File

@ -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;
}