vimeo / psalm

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

Missing TaintedSql when calling mysqli::execute_query #11020

Closed cgocast closed 2 months ago

cgocast commented 3 months ago

The following code should trigger two TaintedSql issues : https://psalm.dev/r/f98b88f1aa

I'll write a PR that fixes this bug

psalm-github-bot[bot] commented 3 months ago

I found these snippets:

https://psalm.dev/r/f98b88f1aa ```php execute_query($query); // Should trigger a TaintedSql ``` ``` Psalm output (using commit 16b24bd): No issues! ```