Skip to content

get_class(Enum::Value) returns class-string<Enum::Value> instead of class-string<Enum> #7167

@olsavmic

Description

@olsavmic

Bug report

See snippet

Code snippet that reproduces the problem

https://phpstan.org/r/e53f7c83-d15a-4426-b7cb-8665eab9916e

Expected output

Dumped type: class-string

Did PHPStan help you today? Did it make you happy in any way?

All the time! It's awesome :)

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