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:
parent
96ce488241
commit
abe91adbe7
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user