Skip to content
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

ControlStructures: add new utility to parse match expressions to its parts #497

Open
jrfnl opened this issue Jul 26, 2023 · 0 comments
Open

Comments

@jrfnl
Copy link
Member

jrfnl commented Jul 26, 2023

A utility to parse PHP 8.0 match expressions into the following parts for each "leaf":

  • Condition/comparison values (array as this can be a single value or multiple values)
  • Return value

Needs a think about how to handle default, which isn't a condition/comparison value, but does have a return value.

Needs to take match expressions which don't have a trailing comma at the end of the last expression into account.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant