mirror of
https://github.com/danog/psalm.git
synced 2024-11-27 04:45:20 +01:00
Get bindable params earlier, before replacing with extended ones
This commit is contained in:
parent
abb3800d20
commit
2d6cf8a0b0
@ -1815,6 +1815,12 @@ class CallAnalyzer
|
||||
$param_type = clone $function_param->type;
|
||||
}
|
||||
|
||||
$bindable_template_params = [];
|
||||
|
||||
if ($template_result) {
|
||||
$bindable_template_params = $param_type->getTemplateTypes();
|
||||
}
|
||||
|
||||
if ($class_generic_params) {
|
||||
$empty_generic_params = [];
|
||||
|
||||
@ -1874,8 +1880,6 @@ class CallAnalyzer
|
||||
}
|
||||
}
|
||||
|
||||
$bindable_template_params = $param_type->getTemplateTypes();
|
||||
|
||||
$param_type = UnionTemplateHandler::replaceTemplateTypesWithStandins(
|
||||
$param_type,
|
||||
$template_result,
|
||||
|
Loading…
Reference in New Issue
Block a user