Skip to content

Support the array spread operator #294

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 1, 2019

Conversation

TysonAndre
Copy link
Contributor

  • An alternate approach would be to make arrayElementList contain a class
    that is either an ArrayElement or an UnpackExpression (new Node used
    only for this).

    That would also work for me,
    but changing ArrayElement seemed simpler and less likely to cause crashes in
    other existing applications.

Add tests of this operator and error handling.

See https://wiki.php.net/rfc/spread_operator_for_array

- An alternate approach would be to make arrayElementList contain a class
  that is either an ArrayElement or an UnpackExpression (new Node used
  only for this).

  That would also work for me,
  but changing ArrayElement seemed simpler and less likely to cause crashes in
  other existing applications.

Add tests of this operator and error handling.

See https://wiki.php.net/rfc/spread_operator_for_array
@roblourens roblourens merged commit 0cf8b84 into microsoft:master Jul 1, 2019
@TysonAndre TysonAndre deleted the arrow-spread-operator branch March 27, 2021 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants