1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-30 04:39:00 +01:00

Fix tests

This commit is contained in:
Matt Brown 2020-11-22 16:24:33 -05:00 committed by Daniil Gentili
parent ed9b81ce51
commit 3c7066f505
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7

View File

@ -229,6 +229,8 @@ class TaintFlowGraph extends DataFlowGraph
$config = \Psalm\Config::getInstance();
$project_analyzer = \Psalm\Internal\Analyzer\ProjectAnalyzer::getInstance();
foreach ($this->forward_edges[$generated_source->id] as $to_id => $path) {
$path_type = $path->type;
$added_taints = $path->unescaped_taints ?: [];
@ -262,6 +264,7 @@ class TaintFlowGraph extends DataFlowGraph
}
if ($generated_source->code_location
&& $project_analyzer->canReportIssues($generated_source->code_location->file_path)
&& !$config->reportIssueInFile('TaintedInput', $generated_source->code_location->file_path)
) {
continue;