Skip to content

Unclear error message when array formats don't match #3168

@tjveldhuizen

Description

@tjveldhuizen

Bug report

When using the snippet below, the error messages states that the pattern for given parameter is incorrect, however it tells the correct pattern is the same as the existing.

Code snippet that reproduces the problem

https://phpstan.org/r/2afbbf2a-8eae-4152-b0cd-db03e305f0d1

Expected output

There is an error, indeed, but the message is not clear.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions