- Affected version
- 2.3.6
For example in
The phpdocs can be updated to indicate what can be added, like this:
I've attached a git patch file which implements this (since I'm using this patch locally since I wanted the type hinting)
AbstractCollection::unshift
is defined as:
PHP:
/**
* @return AbstractCollection<T>
*/
public function unshift()
The phpdocs can be updated to indicate what can be added, like this:
PHP:
/**
* @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)