Skip to content

Conversation

nikic
Copy link
Member

@nikic nikic commented May 14, 2019

Disallow these usages of array spread:

[42 => 0, ...$array]
['a' => 'b', ...$array]

@carusogabriel
Copy link
Contributor

@nikic Sorry if I didn't follow the RFC conversation, but what is the motivation here?

@petk petk added the Feature label May 16, 2019
@jhdxr
Copy link
Member

jhdxr commented May 29, 2019

@carusogabriel see https://externals.io/message/105325#105696

I'm not for or against this PR at first, but when I'm drafting the RFC about spread operator for list syntax, I think it would be better if we only deal with pure array (vector) and preserve more possibilities for us.

@nikic
Copy link
Member Author

nikic commented Dec 10, 2019

I forgot about this, so this didn't make it into 7.4 ... abandoning it now.

@nikic nikic closed this Dec 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants