1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-27 04:45:20 +01:00

Fix Psalm errors

This commit is contained in:
Brown 2020-09-01 13:21:10 -04:00 committed by Daniil Gentili
parent b94de0c8b8
commit fb456d2e85
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7

View File

@ -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) {