Skip to content

Commit

Permalink
fix: add source as parent node in CodeBase::addTaintSource()
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick-Remy committed Jul 1, 2024
1 parent bd424dc commit bb8a5d4
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 bb8a5d4

Please sign in to comment.