Skip to content
Permalink
Browse files

Fix #1987 - avoid inferredType not being null

  • Loading branch information...
muglug committed Aug 8, 2019
1 parent 04c12a3 commit 747782d258169acc0e98ec327d7d045566a56ae3
@@ -178,7 +178,7 @@ public static function analyze(
}
} else {
ExpressionAnalyzer::analyze($statements_analyzer, $stmt->class, $context);
$lhs_type = $stmt->class->inferredType;
$lhs_type = $stmt->class->inferredType ?? Type::getMixed();
}
if (!$lhs_type) {

0 comments on commit 747782d

Please sign in to comment.
You can’t perform that action at this time.