Skip to content

Template type not preserved when using ::class (get_class works) #6986

@janedbal

Description

@janedbal

Bug report

See snippet.

Code snippet that reproduces the problem

https://phpstan.org/r/b8e9ea6c-4697-45c5-835c-9604488a6034

Expected output

No error

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

It helps me every day!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions