1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-27 04:45:20 +01:00

Remove unused field

This commit is contained in:
Daniil Gentili 2022-01-26 18:51:24 +01:00
parent 8d0c1c62e8
commit ada778e8df
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7
3 changed files with 2 additions and 9 deletions

View File

@ -2387,7 +2387,7 @@ class ClassAnalyzer extends ClassLikeAnalyzer
$storage,
$parent_class_storage,
$code_location,
$storage->template_extended_count ?? 0
$storage->template_type_extends_count[$parent_fq_class_name] ?? 0
);
} catch (InvalidArgumentException $e) {
// do nothing

View File

@ -988,8 +988,7 @@ class ClassLikeNodeScanner
$extended_type_parameters = [];
$storage->template_extended_count = count($atomic_type->type_params);
$storage->template_type_extends_count[$atomic_type->value] = $storage->template_extended_count;
$storage->template_type_extends_count[$atomic_type->value] = count($atomic_type->type_params);
foreach ($atomic_type->type_params as $type_param) {
$extended_type_parameters[] = $type_param;

View File

@ -360,12 +360,6 @@ class ClassLikeStorage
*/
public $template_extended_params;
/**
* @deprecated Will be replaced with $template_type_extends_count in Psalm v5
* @var ?int
*/
public $template_extended_count;
/**
* @var array<string, int>|null
*/