Skip to content

False positive when passing set of enum instances to Set<Enum> #6433

@simPod

Description

@simPod

Bug report

Phpstan reports false issue when passing set of concrete enums (E) instances to Set<E> param

Code snippet that reproduces the problem

https://phpstan.org/r/df31455c-0df9-4b1e-b33e-674ed458951b

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