Skip to content

Commit

Permalink
temp revert for taint
Browse files Browse the repository at this point in the history
  • Loading branch information
kkmuffme committed Sep 9, 2022
1 parent de7b84c commit 0dd7ac0
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ public static function castIntAttempt(

$parent_nodes = [];

if ($statements_analyzer->data_flow_graph instanceof VariableUseGraph) {
if ($statements_analyzer->data_flow_graph) {
$parent_nodes = $stmt_type->parent_nodes;
}

Expand Down Expand Up @@ -404,7 +404,7 @@ public static function castIntAttempt(
$context
);

if ($statements_analyzer->data_flow_graph instanceof VariableUseGraph) {
if ($statements_analyzer->data_flow_graph) {
$parent_nodes = array_merge($return_type->parent_nodes, $parent_nodes);
}

Expand Down Expand Up @@ -500,7 +500,7 @@ public static function castIntAttempt(
);
}

if ($statements_analyzer->data_flow_graph instanceof VariableUseGraph) {
if ($statements_analyzer->data_flow_graph) {
$int_type->parent_nodes = $parent_nodes;
}

Expand All @@ -525,7 +525,7 @@ public static function castFloatAttempt(

$parent_nodes = [];

if ($statements_analyzer->data_flow_graph instanceof VariableUseGraph) {
if ($statements_analyzer->data_flow_graph) {
$parent_nodes = $stmt_type->parent_nodes;
}

Expand Down Expand Up @@ -623,7 +623,7 @@ public static function castFloatAttempt(
$context
);

if ($statements_analyzer->data_flow_graph instanceof VariableUseGraph) {
if ($statements_analyzer->data_flow_graph) {
$parent_nodes = array_merge($return_type->parent_nodes, $parent_nodes);
}

Expand Down Expand Up @@ -719,7 +719,7 @@ public static function castFloatAttempt(
);
}

if ($statements_analyzer->data_flow_graph instanceof VariableUseGraph) {
if ($statements_analyzer->data_flow_graph) {
$float_type->parent_nodes = $parent_nodes;
}

Expand All @@ -743,7 +743,7 @@ public static function castStringAttempt(

$parent_nodes = [];

if ($statements_analyzer->data_flow_graph instanceof VariableUseGraph) {
if ($statements_analyzer->data_flow_graph) {
$parent_nodes = $stmt_type->parent_nodes;
}

Expand Down Expand Up @@ -834,7 +834,7 @@ public static function castStringAttempt(
$context
);

if ($statements_analyzer->data_flow_graph instanceof VariableUseGraph) {
if ($statements_analyzer->data_flow_graph) {
$parent_nodes = array_merge($return_type->parent_nodes, $parent_nodes);
}

Expand Down Expand Up @@ -899,7 +899,7 @@ public static function castStringAttempt(
);
}

if ($statements_analyzer->data_flow_graph instanceof VariableUseGraph) {
if ($statements_analyzer->data_flow_graph) {
$str_type->parent_nodes = $parent_nodes;
}

Expand Down

0 comments on commit 0dd7ac0

Please sign in to comment.