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:
parent
8d0c1c62e8
commit
ada778e8df
@ -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
|
||||
|
@ -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;
|
||||
|
@ -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
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user