Skip to content

template-use only works if trait and the class using the trait, has same name for generic type #4423

@canvural

Description

@canvural

Bug report

Not working: https://phpstan.org/r/7ae5f72d-9a22-4faf-a171-8c93994a5f1a
Working: https://phpstan.org/r/c2027941-0e2e-4ad7-a464-8a63c40d7ec5

Expected Output

Dumped type: Bar<int> in both cases

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions