Skip to content

[Proposal]: Additional array transformations when using partritioning or type comparison #2236

@stloyd

Description

@stloyd

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions