Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
danog committed Mar 7, 2025
1 parent b513b32 commit 53d4113
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Psalm/Internal/Codebase/TaintFlowGraph.php
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,8 @@ private function getChildNodes(
$path = $this->getPredecessorPath($generated_source)
. ' -> ' . $this->getSuccessorPath($sink);

for ($x = $codebase->taint_count-1; $x >= 0; $x--) {
$max = $codebase->taint_count;
for ($x = 0; $x < $max; $x++) {
$t = 1 << $x;
if (!($matching_taints & $t)) {
continue;
Expand Down

0 comments on commit 53d4113

Please sign in to comment.