vimeo / psalm

A static analysis tool for finding errors in PHP applications
https://psalm.dev
MIT License
5.55k stars 659 forks source link

PossiblyInvalidFunctionCall false negative when mixing union types and generics #10258

Open mathroc opened 1 year ago

mathroc commented 1 year ago

not sure where the issues is so the issue title is might be very wrong, but somehow if I use a template type Psalm seems to get confused in some cases: https://psalm.dev/r/ec96c2230d

psalm-github-bot[bot] commented 1 year ago

I found these snippets:

https://psalm.dev/r/ec96c2230d ```php