Open seyfahni opened 12 months ago
I found these snippets:
Appears this a regression, bisect isolates this commit https://github.com/vimeo/psalm/commit/70319a68a7696105384759252bc55810c0c197e1, specifically composer.json
There is a test for this, which runs fine in PHPUnit, but that runs in 7.4 mode, the issue only occurs when run in a project with a minimum version of 8.0.
@weirdan, anything jump out at you why a version change would stop that class stub working? The only thing that I could see was the @since 8.0.0
but removing that didn't fix the test.
Expected behavior: When iterating over a
WeakMap
keys have the type set via generic definition inferred.Actual behavior: When iterating over a
WeakMap
keys have themixed
type.https://psalm.dev/r/09953666a9