ENXF NET
Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
- Joined
- Nov 13, 2018
- Messages
- 27,308
- Points
- 823
Reputation:
For example in
PHP:
The phpdocs can be updated to indicate what can be added, like this:
PHP:
I've attached a git patch file which implements this (since I'm using this patch locally since I wanted the type hinting)
Continue reading...
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)
Continue reading...