vimeo / psalm

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

False negative InvalidReturnType when returning template or null #8297

Open AndrolGenhald opened 2 years ago

AndrolGenhald commented 2 years ago

https://psalm.dev/r/e571dcb19b

Should be InvalidReturnType like https://psalm.dev/r/ca7969420b

psalm-github-bot[bot] commented 2 years ago

I found these snippets:

https://psalm.dev/r/e571dcb19b ```php
https://psalm.dev/r/ca7969420b ```php