diff --git a/src/pocketmine/event/block/BlockBreakEvent.php b/src/pocketmine/event/block/BlockBreakEvent.php index 19d0c6672..9ee0ab7e1 100644 --- a/src/pocketmine/event/block/BlockBreakEvent.php +++ b/src/pocketmine/event/block/BlockBreakEvent.php @@ -110,7 +110,7 @@ class BlockBreakEvent extends BlockEvent implements Cancellable{ /** * Variadic hack for easy array member type enforcement. * - * @param Item[] ...$drops + * @param Item ...$drops */ public function setDropsVariadic(Item ...$drops){ $this->blockDrops = $drops; diff --git a/src/pocketmine/inventory/Inventory.php b/src/pocketmine/inventory/Inventory.php index 1f1fc266f..ab1e29374 100644 --- a/src/pocketmine/inventory/Inventory.php +++ b/src/pocketmine/inventory/Inventory.php @@ -82,7 +82,7 @@ interface Inventory{ * * Returns the Items that did not fit. * - * @param Item[] ...$slots + * @param Item ...$slots * * @return Item[] */ @@ -101,7 +101,7 @@ interface Inventory{ * Removes the given Item from the inventory. * It will return the Items that couldn't be removed. * - * @param Item[] ...$slots + * @param Item ...$slots * * @return Item[] */ diff --git a/src/pocketmine/level/Level.php b/src/pocketmine/level/Level.php index 7d305e5bd..d3b364da0 100644 --- a/src/pocketmine/level/Level.php +++ b/src/pocketmine/level/Level.php @@ -690,7 +690,7 @@ class Level implements ChunkManager, Metadatable{ * WARNING: Do not use this, it's only for internal use. * Changes to this function won't be recorded on the version. * - * @param Player[] ...$targets If empty, will send to all players in the level. + * @param Player ...$targets If empty, will send to all players in the level. */ public function sendTime(Player ...$targets){ $pk = new SetTimePacket(); @@ -2942,7 +2942,7 @@ class Level implements ChunkManager, Metadatable{ } /** - * @param Player[] ...$targets + * @param Player ...$targets */ public function sendDifficulty(Player ...$targets){ if(count($targets) === 0){ diff --git a/src/pocketmine/network/mcpe/NetworkBinaryStream.php b/src/pocketmine/network/mcpe/NetworkBinaryStream.php index 9b1236898..3e51a8c85 100644 --- a/src/pocketmine/network/mcpe/NetworkBinaryStream.php +++ b/src/pocketmine/network/mcpe/NetworkBinaryStream.php @@ -254,7 +254,7 @@ class NetworkBinaryStream extends BinaryStream{ /** * Writes a list of Attributes to the packet buffer using the standard format. * - * @param Attribute[] ...$attributes + * @param Attribute ...$attributes */ public function putAttributeList(Attribute ...$attributes) : void{ $this->putUnsignedVarInt(count($attributes)); diff --git a/src/pocketmine/plugin/PluginManager.php b/src/pocketmine/plugin/PluginManager.php index 12c843e30..fa8bd7854 100644 --- a/src/pocketmine/plugin/PluginManager.php +++ b/src/pocketmine/plugin/PluginManager.php @@ -344,7 +344,7 @@ class PluginManager{ /** * Returns whether a specified API version string is considered compatible with the server's API version. * - * @param string[] ...$versions + * @param string ...$versions * @return bool */ public function isCompatibleApi(string ...$versions) : bool{ diff --git a/src/pocketmine/utils/Color.php b/src/pocketmine/utils/Color.php index fba8da4ae..3cd4b9543 100644 --- a/src/pocketmine/utils/Color.php +++ b/src/pocketmine/utils/Color.php @@ -104,7 +104,7 @@ class Color{ /** * Mixes the supplied list of colours together to produce a result colour. * - * @param Color[] ...$colors + * @param Color ...$colors * @return Color */ public static function mix(Color ...$colors) : Color{ diff --git a/src/pocketmine/utils/UUID.php b/src/pocketmine/utils/UUID.php index 5f4c75ad6..092ac7e2e 100644 --- a/src/pocketmine/utils/UUID.php +++ b/src/pocketmine/utils/UUID.php @@ -73,7 +73,7 @@ class UUID{ /** * Creates an UUIDv3 from binary data or list of binary data * - * @param string[] ...$data + * @param string ...$data * @return UUID */ public static function fromData(string ...$data) : UUID{