1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-30 04:39:00 +01:00
This commit is contained in:
Daniil Gentili 2022-08-17 13:25:00 +02:00
parent 24b008ee40
commit 95ef63ece9
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7

View File

@ -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;