vimeo / psalm

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

no error for function marked pure returning global variable #7425

Open ptomulik opened 2 years ago

ptomulik commented 2 years ago

I guess, this should be detected as error:

https://psalm.dev/r/00fca60a04

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

I found these snippets:

https://psalm.dev/r/00fca60a04 ```php