Sitelet https://github.com/phpstan/phpstan/issues/8609
Skip to content

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions