Functions which use func_get_args should be typehinted with 'mixed ... $arguments'

  • Thread starter Thread starter Xon
  • Start date Start date

Xon

Guest
Member
For example in AbstractCollection::unshift is defined as:

PHP:

Code:
/**
 * @return AbstractCollection<T>
 */
public function unshift()

The phpdocs can be updated to indicate what can be added, like this:
PHP:

Code:
/**
 * @param T ...$arguments
 * @return AbstractCollection<T>
 */
public function unshift()

I've attached a git patch file which implements this (since I'm using this patch locally since I wanted the type hinting)
Functions which use func_get_args should be typehinted with 'mixed ... $arguments'

free plugins
minecraft paid for free
mcmarket
mc-market
free minecraft paid plugins
free minecraft plugins
spigotmc
SpigotMC
aac free
ewg free
Minecraft Premium Plugins
ewg free download
litebans free
epicworldgenerator free
free schematics
leaked schematics minecraft
schematics
schematics leaked
schematics free
minecraft schematics free
paid minecraft schematics free
paid minecraft schematics for free
free cracked plugins
free cracked minecraft plugins
plugins
featherboard download
featherboard plugin download
antiaura download
xenforo leaked
xenforo for free
xenforo addons
 
Top