mirror of
https://github.com/danog/psalm.git
synced 2024-11-30 04:39:00 +01:00
Update
This commit is contained in:
parent
24b008ee40
commit
95ef63ece9
@ -2,6 +2,7 @@
|
||||
|
||||
namespace Psalm\Internal\Analyzer\Statements\Expression\Call;
|
||||
|
||||
use AssertionError;
|
||||
use Psalm\Codebase;
|
||||
use Psalm\Internal\Type\TemplateResult;
|
||||
use Psalm\Internal\Type\TypeExpander;
|
||||
@ -180,6 +181,9 @@ class ClassTemplateParamCollector
|
||||
null,
|
||||
$lhs_type_part
|
||||
);
|
||||
if ($templates === null) {
|
||||
throw new AssertionError("Could not collect templates!");
|
||||
}
|
||||
$template_result = new TemplateResult($static_class_storage->template_types, $templates);
|
||||
}
|
||||
$output_type_extends = null;
|
||||
|
Loading…
Reference in New Issue
Block a user