Skip to content

ConstantArrayType is not accepted into ConstantArrayType with the same description #10872

Closed
@mvorisek

Description

@mvorisek

Bug report

There is some internal issue. In the repro, all types are the same.

Even more interesting - when the type is defined manually (uncomment the l35 to reproduce) - the issue is gone.

Code snippet that reproduces the problem

https://phpstan.org/r/850078c3-6db8-41a7-a888-bc5d7517e8fe

Expected output

no phpstan error

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions