From fb456d2e850f61cc393eb6599fe652d33a0c1829 Mon Sep 17 00:00:00 2001 From: Brown Date: Tue, 1 Sep 2020 13:21:10 -0400 Subject: [PATCH] Fix Psalm errors --- .../Expression/Call/Method/AtomicMethodCallAnalyzer.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Psalm/Internal/Analyzer/Statements/Expression/Call/Method/AtomicMethodCallAnalyzer.php b/src/Psalm/Internal/Analyzer/Statements/Expression/Call/Method/AtomicMethodCallAnalyzer.php index 0861db4b2..797cb5379 100644 --- a/src/Psalm/Internal/Analyzer/Statements/Expression/Call/Method/AtomicMethodCallAnalyzer.php +++ b/src/Psalm/Internal/Analyzer/Statements/Expression/Call/Method/AtomicMethodCallAnalyzer.php @@ -268,13 +268,14 @@ class AtomicMethodCallAnalyzer extends CallAnalyzer $stmt->args, $stmt->getAttributes() ); - $ret_value = FunctionCallAnalyzer::analyze( + + FunctionCallAnalyzer::analyze( $statements_analyzer, $fake_function_call, $context ); - $function_return = $statements_analyzer->node_data->getType($fake_function_call); + $function_return = $statements_analyzer->node_data->getType($fake_function_call) ?: Type::getMixed(); $statements_analyzer->node_data = $old_node_data; if (!$result->return_type) {