Fix variadic type docs ...again

PhpStorm changed its mind how it wants these documenting in 2018.1, and apparently the correct syntax follows the PHP code.
This commit is contained in:
Dylan K. Taylor 2018-04-02 12:33:24 +01:00
parent 8ce0fab8cc
commit eba1ca030c
7 changed files with 9 additions and 9 deletions

View File

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

View File

@ -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[]
*/

View File

@ -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){

View File

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

View File

@ -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{

View File

@ -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{

View File

@ -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{