1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-26 20:34:47 +01:00

Find annotated magic static methods on parent class

This commit is contained in:
Ivan Sidorov 2023-11-14 11:32:20 +00:00
parent 75394c5037
commit ceba3d889d
2 changed files with 3 additions and 0 deletions

View File

@ -560,6 +560,8 @@ final class Populator
$parent_storage->dependent_classlikes[strtolower($storage->name)] = true;
$storage->pseudo_static_methods += $parent_storage->pseudo_static_methods;
$storage->pseudo_methods += $parent_storage->pseudo_methods;
$storage->declaring_pseudo_method_ids += $parent_storage->declaring_pseudo_method_ids;
}

View File

@ -447,6 +447,7 @@ final class MethodGetCompletionItemsForClassishThingTest extends TestCase
'protectedStaticMethod',
],
'::' => [
'magicStaticMethod',
'publicStaticProp',
'protectedStaticProp',