Skip to content

Regression on combination of array_map and array_flip #14649

@VincentLanglet

Description

@VincentLanglet

Bug report

The snippet was not reporting any error in 2.51.0
https://phpstan.org/r/62c5d44b-39ec-4943-84d5-3c2319cb5f89

Code snippet that reproduces the problem

https://phpstan.org/r/62c5d44b-39ec-4943-84d5-3c2319cb5f89

Expected output

No errors

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