From 683f8d21f35cad46588f44df54e1a7f96b3a73f3 Mon Sep 17 00:00:00 2001 From: kkmuffme <11071985+kkmuffme@users.noreply.github.com> Date: Fri, 9 Sep 2022 03:33:46 +0200 Subject: [PATCH] Revert "consistency fix-up" This reverts commit 91b5c2819c0214da081cc6e503262b54e0c74b2d. --- .../Internal/Analyzer/Statements/Expression/CastAnalyzer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Psalm/Internal/Analyzer/Statements/Expression/CastAnalyzer.php b/src/Psalm/Internal/Analyzer/Statements/Expression/CastAnalyzer.php index 07ac28066e6..2ecddcc57d2 100644 --- a/src/Psalm/Internal/Analyzer/Statements/Expression/CastAnalyzer.php +++ b/src/Psalm/Internal/Analyzer/Statements/Expression/CastAnalyzer.php @@ -256,7 +256,7 @@ public static function analyze( $type = Type::getArray(); } - if ($statements_analyzer->data_flow_graph instanceof VariableUseGraph) { + if ($statements_analyzer->data_flow_graph) { $type->parent_nodes = $stmt_expr_type->parent_nodes ?? []; }