Skip to content

array{a?: mixed, b?: mixed} expected, array<'a'|'b', mixed> given #14747

Description

@claudepache

Bug report

... but array{a?: mixed, b?: mixed} and array<'a'|'b', mixed> are two ways to say the same thing.

Code snippet that reproduces the problem

https://phpstan.org/r/51541898-c3e6-4cd3-8059-714466887c2e

Expected output

No error.

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
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions