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 with @psalm-pure method that mutates array provided via reference #7441

Open ptomulik opened 2 years ago

ptomulik commented 2 years ago

https://psalm.dev/r/dd84007c62

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

I found these snippets:

https://psalm.dev/r/dd84007c62 ```php $a */ function f(array& $a): string { $a[1] = ''; return $a[0]; } ``` ``` Psalm output (using commit 5a6dccd): No issues! ```