Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add source as parent node in CodeBase::addTaintSource()
Browse files Browse the repository at this point in the history
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
@@ -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]);
}

0 comments on commit bb8a5d4

Please sign in to comment.