Skip to content

Generic template type bound is lost in get_class #3263

@hrach

Description

@hrach

Bug report

Generic bound is lost in get_class, at least that was what I thought when I saw this error for the first time. But it weirdly works with local variable.

Still, the get_class impl always produces the class string with generic as ObjectType, never TemplateType.

https://phpstan.org/r/ad705b5f-cf89-45b6-9c8f-14ac8ed22916

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions