From f347345bb3e62b810e72bd21ffceb93f69db6968 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Mon, 21 Oct 2019 15:25:57 +0100 Subject: [PATCH] Human::getInventory(): explicitly declare return type the lack of this causes type inference bugs and documentation problems. thanks PHPStan --- src/pocketmine/entity/Human.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/pocketmine/entity/Human.php b/src/pocketmine/entity/Human.php index b5fb32263..0a9def938 100644 --- a/src/pocketmine/entity/Human.php +++ b/src/pocketmine/entity/Human.php @@ -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; }