From e079781b35f623fbde9cec8d799449aaf036099e Mon Sep 17 00:00:00 2001 From: Matt Brown Date: Fri, 2 Oct 2020 20:33:35 -0400 Subject: [PATCH] Unbreak gettype support --- .../Statements/Expression/Call/FunctionCallAnalyzer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Psalm/Internal/Analyzer/Statements/Expression/Call/FunctionCallAnalyzer.php b/src/Psalm/Internal/Analyzer/Statements/Expression/Call/FunctionCallAnalyzer.php index 16f9d3c6e..ff996112d 100644 --- a/src/Psalm/Internal/Analyzer/Statements/Expression/Call/FunctionCallAnalyzer.php +++ b/src/Psalm/Internal/Analyzer/Statements/Expression/Call/FunctionCallAnalyzer.php @@ -1347,7 +1347,7 @@ class FunctionCallAnalyzer extends CallAnalyzer ? Type::getObject() : $context->vars_in_scope[$var_id] ); - } elseif ($function_name->parts === ['get_class']) { + } elseif ($function_name->parts === ['gettype']) { $atomic_type = new Type\Atomic\TDependentGetType($var_id); } else { $atomic_type = new Type\Atomic\TDependentGetDebugType($var_id);