Skip to content

Unable to use ReflectionAttribute->newInstance with EnumCase as default value #9477

@janedbal

Description

@janedbal

Bug report

The problem lies in better-reflection, see original report. They suggest it could be fixed in your fork. How do you feel about that?

Code snippet that reproduces the problem

https://phpstan.org/r/c9db7b66-d448-4163-ab07-db3be510275d

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions