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 9b93954 commit 8d24007
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,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 @@ -402,7 +402,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 @@ -498,7 +498,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 @@ -523,7 +523,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 @@ -620,7 +620,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 @@ -716,7 +716,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 @@ -740,7 +740,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 @@ -830,7 +830,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 @@ -895,7 +895,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 8d24007

Please sign in to comment.