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 25, 2024
1 parent 01a8eb0 commit 3586290
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 3586290

Please sign in to comment.