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