vimeo / psalm

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

Null coalescing assignment operator in if condition does not remove null from type #11158

Open M393 opened 7 hours ago

M393 commented 7 hours ago

https://psalm.dev/r/cdff4f688e All three functions should be without a warning as they all behave the same.

psalm-github-bot[bot] commented 7 hours ago

I found these snippets:

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