node_data->setType($stmt, $stmt_type); $inside_negation = $context->inside_negation; $context->inside_negation = !$inside_negation; $result = ExpressionAnalyzer::analyze($statements_analyzer, $stmt->expr, $context); $context->inside_negation = $inside_negation; $expr_type = $statements_analyzer->node_data->getType($stmt->expr); if ($expr_type) { $stmt_type->parent_nodes = $expr_type->parent_nodes; } return $result; } }