Describe the Proposal
I have noticed that when using partitioning, sorting, or type comparison, there are additional calls to array merge, array unpack, etc. This is done cause some methods have both normal variables and variadic ones.
I.e.:
public function partitionBy(string|Reference $entry, string|Reference ...$entries) : self
But later on, those two are merged into one, which is not really needed, as a variadic variable can handle that well already.
API Adjustments
public function partitionBy(string|Reference ...$entries) : self
Are you intending to also work on proposed change?
Yes
Are you interested in sponsoring this change?
None
Integration & Dependencies
No response