Skip to content

Regexp with empty alternation is not parsable #11762

@mvorisek

Description

@mvorisek

Bug report

discovered by phpstan/phpstan-src#3505

Code snippet that reproduces the problem

https://phpstan.org/r/7f243845-7692-46cc-9fcd-33e550ac9732

Expected output

no error

Metadata

Metadata

Assignees

No one assigned

    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