Skip to content

Commit

Permalink
consistency fix-up
Browse files Browse the repository at this point in the history
  • Loading branch information
kkmuffme committed Aug 3, 2022
1 parent 1ef3851 commit 91b5c28
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ public static function analyze(
$type = Type::getArray();
}

if ($statements_analyzer->data_flow_graph) {
if ($statements_analyzer->data_flow_graph instanceof VariableUseGraph) {
$type->parent_nodes = $stmt_expr_type->parent_nodes ?? [];
}

Expand Down Expand Up @@ -317,7 +317,7 @@ public static function castStringAttempt(

$parent_nodes = [];

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

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

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

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

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

Expand Down

0 comments on commit 91b5c28

Please sign in to comment.