-
-
Notifications
You must be signed in to change notification settings - Fork 863
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
False Positive Within Nested return type of generic functions #5562
Comments
Thank you for your kind words! Fixed: phpstan/phpstan-src@1b5710a |
thank you! |
I spent 2 hours trying to figure out why this wasn't fixed locally for me when running against my codebase... turns out when having larastan installed the bug persists! So strange... going to see if i can figure out what is causing it in the plugin.
Now I go into my phpstan.neon file and remove
and rerun...
contents of my class being analyzed:
|
No idea why that's the case, please open a Larastan issue. |
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. |
Bug report
I'm on version
0.12.95
These return types should be the same, no?
Function foo() should return T of int|string but returns int|string.
Code snippet that reproduces the problem
https://phpstan.org/r/da00afd4-bcaa-45c4-92ca-d02ed7a0e91c
Expected output
Did PHPStan help you today? Did it make you happy in any way?
PHPStan has helped me so much as an engineer. Thank you all contributors for the work that you do.
The text was updated successfully, but these errors were encountered: