1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-22 13:51:54 +01:00
This commit is contained in:
Daniil Gentili 2024-01-15 13:07:06 +01:00
parent c6c7649af3
commit 4dd06f7296

View File

@ -632,16 +632,11 @@ final class ClassLikeNodeScanner
$storage->pseudo_static_methods[$lc_method_name] = $pseudo_method_storage;
} else {
$storage->pseudo_methods[$lc_method_name] = $pseudo_method_storage;
$storage->declaring_pseudo_method_ids[$lc_method_name] = new MethodIdentifier(
$fq_classlike_name,
$lc_method_name,
);
}
$method_identifier = new MethodIdentifier(
$fq_classlike_name,
$lc_method_name,
);
$storage->inheritable_method_ids[$lc_method_name] = $method_identifier;
if (!isset($storage->overridden_method_ids[$lc_method_name])) {
$storage->overridden_method_ids[$lc_method_name] = [];
}
$storage->declaring_pseudo_method_ids[$lc_method_name] = $method_identifier;
}