Skip to content

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

Open
@jrfnl

Description

@jrfnl

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions