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

Fix #3801 - convert static to Foo&static when @method is given

This commit is contained in:
Brown 2020-07-30 09:42:23 -04:00
parent 96ce488241
commit abe91adbe7

View File

@ -188,6 +188,17 @@ class MissingMethodCallHandler
) ?: Type::getMixed();
}
$return_type_candidate = \Psalm\Internal\Type\TypeExpander::expandUnion(
$codebase,
$return_type_candidate,
$fq_class_name,
$fq_class_name,
$class_storage->parent_class,
true,
false,
$class_storage->final
);
if (!$result->return_type) {
$result->return_type = $return_type_candidate;
} else {