TaintedExtract
should not be thrown for array values (only keys)
#11263
Labels
TaintedExtract
should not be thrown for array values (only keys)
#11263
This throws a
TaintedExtract
error. In my opinionTaintedExtract
should only look at the array keys (used as variable names). The given code is the same as:which is safe.
While this would be dangerous:
https://psalm.dev/r/6620d37bc4
TaintedExtract
for line 3 is correctTaintedExtract
for line 5 is wrong in my opinion. There is nothing wrong in this line. If the variable$foo
is used in any other taint sink, it is reported anyway (see line 6).TaintedHtml
andTaintedTextWithQuotes
for line 6 are also correctThe text was updated successfully, but these errors were encountered: