From 5d8bb8426950867841c15ac83761b95a008face6 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Thu, 30 Jan 2020 21:48:11 +0000 Subject: [PATCH] add more mixed[] to item namespace --- src/pocketmine/item/Banner.php | 2 ++ src/pocketmine/item/Item.php | 3 +++ 2 files changed, 5 insertions(+) diff --git a/src/pocketmine/item/Banner.php b/src/pocketmine/item/Banner.php index a7d6f6ba8..eaa9cb24b 100644 --- a/src/pocketmine/item/Banner.php +++ b/src/pocketmine/item/Banner.php @@ -97,6 +97,8 @@ class Banner extends Item{ /** * Returns the data of a pattern with the given ID. + * + * @return mixed[] */ public function getPatternData(int $patternId) : array{ if(!$this->patternExists($patternId)){ diff --git a/src/pocketmine/item/Item.php b/src/pocketmine/item/Item.php index 135e7525c..852785714 100644 --- a/src/pocketmine/item/Item.php +++ b/src/pocketmine/item/Item.php @@ -769,6 +769,8 @@ class Item implements ItemIds, \JsonSerializable{ /** * Returns an array of item stack properties that can be serialized to json. + * + * @return mixed[] */ final public function jsonSerialize() : array{ $data = [ @@ -792,6 +794,7 @@ class Item implements ItemIds, \JsonSerializable{ /** * Returns an Item from properties created in an array by {@link Item#jsonSerialize} + * @param mixed[] $data */ final public static function jsonDeserialize(array $data) : Item{ $nbt = "";