We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
https://psalm.dev/r/4549ee95d8
The text was updated successfully, but these errors were encountered:
I found these snippets:
<?php /** * @template T * @psalm-yield T */ class a { } /** * @template TT1 * @template TT2 * @extends a<TT2> */ class b extends a {} function aa(): \Generator { /** @var a<"test2"> */ $b = new b; $result = yield $b; /** @psalm-trace $result */ return $result; } function bb(): \Generator { /** @var b<"test1", "test2"> */ $b = new b; $result = yield $b; /** @psalm-trace $result */ return $result; }
Psalm output (using commit fdf3a8d): INFO: Trace - 21:5 - $result: "test2" INFO: MixedAssignment - 26:5 - Unable to determine the type that $result is being assigned to INFO: Trace - 28:5 - $result: b<"test1", "test2">|mixed
Sorry, something went wrong.
Fix vimeo#6983, vimeo#8564
8c9558c
Merge pull request #8578 from Nicelocal/fix_6983_8564
e7f05c3
Fix #6983 #8564
No branches or pull requests
https://psalm.dev/r/4549ee95d8
The text was updated successfully, but these errors were encountered: