Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Templates: PHPDoc tag @template Tx for class Y with bound type null is not supported. #4656

Closed
bendavies opened this issue Mar 4, 2021 · 3 comments

Comments

@bendavies
Copy link

bendavies commented Mar 4, 2021

Bug report

Hi there,

I can't really describe the issue other than "this should work" so hopefully the snippet will demonstrate it satisfactorily.

Thanks!

Code snippet that reproduces the problem

https://phpstan.org/r/45cd3805-78e1-49ff-943c-94390b933aed

Expected output

no errors

@ondrejmirtes ondrejmirtes added this to the Generics milestone Mar 4, 2021
@phpstan-bot
Copy link
Contributor

@bendavies After the latest commit in dev-master, PHPStan now reports different result with your code snippet:

@@ @@
-12: PHPDoc tag @template TApplication for class Loss with bound type null is not supported.
-12: PHPDoc tag @template TEndorsement for class Loss with bound type null is not supported.
-12: PHPDoc tag @template TQuote for class Loss with bound type null is not supported.
+No errors

@ondrejmirtes
Copy link
Member

Fixed: phpstan/phpstan-src@1d8b2eb

@github-actions
Copy link

github-actions bot commented Mar 3, 2022

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 3, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants