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.