Skip to content

Conditional return type uses subject type T which is not part of PHPDoc @template tags. #8609

@staabm

Description

@staabm

Bug report

Code snippet that reproduces the problem

https://phpstan.org/r/3b194d6d-4f29-4aca-b8eb-77504c46f426

Expected output

I didn't expect the error Conditional return type uses subject type T which is not part of PHPDoc @template tags. at line 24 since the template should be inherited from the baseclass in a similar fashion the return type and parameter types etc. are inherited.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions