Skip to content

class-string<T of Something> should pass through literal-string #7823

@simPod

Description

@simPod

Bug report

I'm getting ::class from generic input constraint to a parent class. That value then is not getting through literal-string check

Code snippet that reproduces the problem

https://phpstan.org/r/bf021dbe-1b1d-434f-811f-c6ede4beaa6a

Expected output

No error

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions