Skip to content

array<0|1|2|3|4|5|6, value> does not accept array<int<0, 2>|int<4, 6>, value> (and similar) #7594

@dktapps

Description

@dktapps

Bug report

Code snippet that reproduces the problem

https://phpstan.org/r/b264270a-4dc9-4dc0-93bd-37983084ae81

Expected output

No error should be reported. The provided ranges satisfy the allowed set of options.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions