Skip to content

Parameter #1 ...$enums of method Entity::setEnums() expects Enum, static(BaseEnum) given. #4213

@vitkutny

Description

@vitkutny

Bug report

Static type of enum class is not recognized correctly when used through array_map function. Error appeared after update from 0.12.25 to 0.12.59.

Code snippet that reproduces the problem

https://phpstan.org/r/c3cb9d99-758c-4111-8eff-87aeec52ead2

Expected output

No errors!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions