-
Notifications
You must be signed in to change notification settings - Fork 653
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
Wrong template inheritance with stubs #4539
Comments
Hey @thomasvargiu, can you reproduce the issue on https://psalm.dev ? |
Before I delve into this, mind checking to see if it works with latest master? |
Yeah it works! Thanks! |
@muglug You're so fast! |
Yeah, this fix was not trivial: 3dd185e (and broke Psalm itself, leading to two additional fixes). If you want to brush up on Psalm's internals there are a ton of bugs here: https://github.com/vimeo/psalm/issues?q=is%3Aopen+is%3Aissue+label%3A%22easy+problems%22 |
Seems the same resolved issue #4524, but with stubs.
See this project:
https://github.com/thomasvargiu/psalm-issues-tests/tree/wrong-template-inheritance-with-stubs
Where there are:
In the CI you can see:
ERROR: Trace - test.php:9:1 - $value: Original\Functor (see https://psalm.dev/224)
/** @psalm-trace $value */
$value = $identity->map($function);
The text was updated successfully, but these errors were encountered: