vimeo / psalm

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

Assigning nested array value prevents taint from being reported #6934

Open mmcev106 opened 2 years ago

mmcev106 commented 2 years ago

Click here for an example. Remove the line with the comment to see the taints that you would expect to be reported.

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

I found these snippets:

https://psalm.dev/r/8b1ba7b72f ```php
weirdan commented 2 years ago

Curiously enough assigning $b['f'] to a temporary variable allows taints to propagate: https://psalm.dev/r/5c7fa9e34b

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

I found these snippets:

https://psalm.dev/r/5c7fa9e34b ```php