Skip to content

generic functions cannot utilize @phpstan-type definitions at top of class #9008

@arderyp

Description

@arderyp

We should be able to use @phpstan-type aliases defined at the top of a class in generic @template T of functions on the class.

Demo: https://phpstan.org/r/fb9cf9f9-3e38-47a2-b7cb-a79c7f7e30db

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions