1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-02 09:37:59 +01:00
This commit is contained in:
Daniil Gentili 2023-11-27 13:27:23 +01:00
parent bd33348206
commit a84be6465d
2 changed files with 9 additions and 0 deletions

View File

@ -641,6 +641,9 @@ final class ClassLikeNodeScanner
if (!isset($storage->overridden_method_ids[$lc_method_name])) {
$storage->overridden_method_ids[$lc_method_name] = [];
}
if (!isset($storage->declaring_method_ids[$lc_method_name])) {
$storage->declaring_method_ids[$lc_method_name] = $method_identifier;
}
$storage->declaring_pseudo_method_ids[$lc_method_name] = $method_identifier;
}

View File

@ -126,6 +126,7 @@ final class MethodGetCompletionItemsForClassishThingTest extends TestCase
'magicObjProp2',
'magicObjMethod',
'magicStaticMethod',
'publicObjProp',
'protectedObjProp',
@ -201,6 +202,8 @@ final class MethodGetCompletionItemsForClassishThingTest extends TestCase
'magicObjMethod',
'magicStaticMethod',
'publicObjProp',
'protectedObjProp',
'privateObjProp',
@ -281,6 +284,7 @@ final class MethodGetCompletionItemsForClassishThingTest extends TestCase
'magicObjProp2',
'magicObjMethod',
'magicStaticMethod',
'publicObjProp',
'protectedObjProp',
@ -361,6 +365,7 @@ final class MethodGetCompletionItemsForClassishThingTest extends TestCase
'magicObjProp2',
'magicObjMethod',
'magicStaticMethod',
'publicObjProp',
'protectedObjProp',
@ -543,6 +548,7 @@ final class MethodGetCompletionItemsForClassishThingTest extends TestCase
'magicObjProp1',
'magicObjProp2',
'magicObjMethod',
'magicStaticMethod',
'publicObjProp',