mirror of
https://github.com/danog/psalm.git
synced 2025-01-22 05:41:20 +01:00
Return earlier
This commit is contained in:
parent
ad87d1bacc
commit
4f9449b742
@ -1214,8 +1214,14 @@ class ArgumentsAnalyzer
|
||||
$class_generic_params
|
||||
);
|
||||
|
||||
if ($template_types) {
|
||||
if ($class_template_result) {
|
||||
if (!$template_types) {
|
||||
return null;
|
||||
}
|
||||
|
||||
if (!$class_template_result) {
|
||||
return new TemplateResult($template_types, []);
|
||||
}
|
||||
|
||||
$template_result = $class_template_result;
|
||||
|
||||
if (!$template_result->template_types) {
|
||||
@ -1275,12 +1281,6 @@ class ArgumentsAnalyzer
|
||||
}
|
||||
|
||||
return $template_result;
|
||||
} else {
|
||||
return new TemplateResult($template_types, []);
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user