Skip to content

Commit

Permalink
Add source as parent node in CodeBase::addTaintSource()
Browse files Browse the repository at this point in the history
  • Loading branch information
cgocast committed Jun 24, 2024
1 parent 01a8eb0 commit 77764f8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Psalm/Codebase.php
Original file line number Diff line number Diff line change
Expand Up @@ -2453,6 +2453,9 @@ public function addTaintSource(

$this->taint_flow_graph->addSource($source);

/** @psalm-suppress InaccessibleProperty */
$expr_type->parent_nodes[$source->id] = $source;

return $expr_type->addParentNodes([$source->id => $source]);
}

Expand Down

0 comments on commit 77764f8

Please sign in to comment.