1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-22 13:51:54 +01:00

Unbreak gettype support

This commit is contained in:
Matt Brown 2020-10-02 20:33:35 -04:00 committed by Daniil Gentili
parent cb5630d156
commit e079781b35
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7

View File

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