mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-16 11:58:00 +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:
@@ -587,6 +587,9 @@ class Human extends Creature implements ProjectileSource, InventoryHolder{
|
|||||||
return (int) min(100, 7 * $this->getXpLevel());
|
return (int) min(100, 7 * $this->getXpLevel());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return PlayerInventory
|
||||||
|
*/
|
||||||
public function getInventory(){
|
public function getInventory(){
|
||||||
return $this->inventory;
|
return $this->inventory;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user