Skip to content

preg_match missing array shape for pattern #11323

@staabm

Description

@staabm

Bug report

for some reason the snippet does not get a proper array shape.

hoa reports

Unexpected token "?" (zero_or_one) at line 1 and column 10:/Price: (?P<currency>£|€)\d+/

while it works at php runtime: https://3v4l.org/rugXe

grafik

Code snippet that reproduces the problem

https://phpstan.org/r/3a6f6eef-9ecc-4304-b707-b9a688d7f48c

Expected output

expectations in the snippet

Did PHPStan help you today? Did it make you happy in any way?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions