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

Fix text-labels with type of property

The labels for magic and declared properties must be equal.
This commit is contained in:
Ivan Sidorov 2023-11-17 11:41:53 +00:00
parent 650b8fcd1b
commit 6f19440b02
2 changed files with 43 additions and 43 deletions

View File

@ -1954,7 +1954,7 @@ final class Codebase
if ($property_storage->is_static || $gap === '->') {
$completion_items[] = new CompletionItem(
'$' . $property_name,
$property_name,
CompletionItemKind::PROPERTY,
$property_storage->getInfo(),
$property_storage->description,

View File

@ -128,13 +128,13 @@ final class MethodGetCompletionItemsForClassishThingTest extends TestCase
'magicObjMethod',
'magicStaticMethod',
'$publicObjProp',
'$protectedObjProp',
'$privateObjProp',
'publicObjProp',
'protectedObjProp',
'privateObjProp',
'$publicStaticProp',
'$protectedStaticProp',
'$privateStaticProp',
'publicStaticProp',
'protectedStaticProp',
'privateStaticProp',
'publicObjMethod',
'protectedObjMethod',
@ -149,9 +149,9 @@ final class MethodGetCompletionItemsForClassishThingTest extends TestCase
'magicObjProp2',
'magicStaticMethod',
'$publicStaticProp',
'$protectedStaticProp',
'$privateStaticProp',
'publicStaticProp',
'protectedStaticProp',
'privateStaticProp',
'publicStaticMethod',
'protectedStaticMethod',
@ -209,13 +209,13 @@ final class MethodGetCompletionItemsForClassishThingTest extends TestCase
'magicObjMethod',
'magicStaticMethod',
'$publicObjProp',
'$protectedObjProp',
'$privateObjProp',
'publicObjProp',
'protectedObjProp',
'privateObjProp',
'$publicStaticProp',
'$protectedStaticProp',
'$privateStaticProp',
'publicStaticProp',
'protectedStaticProp',
'privateStaticProp',
'abstractPublicMethod',
'abstractProtectedMethod',
@ -233,9 +233,9 @@ final class MethodGetCompletionItemsForClassishThingTest extends TestCase
'magicObjProp2',
'magicStaticMethod',
'$publicStaticProp',
'$protectedStaticProp',
'$privateStaticProp',
'publicStaticProp',
'protectedStaticProp',
'privateStaticProp',
'publicStaticMethod',
'protectedStaticMethod',
@ -296,21 +296,21 @@ final class MethodGetCompletionItemsForClassishThingTest extends TestCase
'magicObjMethod',
'$publicObjProp',
'$protectedObjProp',
'$privateObjProp',
'publicObjProp',
'protectedObjProp',
'privateObjProp',
'$publicStaticProp',
'$protectedStaticProp',
'$privateStaticProp',
'publicStaticProp',
'protectedStaticProp',
'privateStaticProp',
],
'::' => [
'magicObjProp1',
'magicObjProp2',
'$publicStaticProp',
'$protectedStaticProp',
'$privateStaticProp',
'publicStaticProp',
'protectedStaticProp',
'privateStaticProp',
],
];
@ -367,21 +367,21 @@ final class MethodGetCompletionItemsForClassishThingTest extends TestCase
'magicObjMethod',
'$publicObjProp',
'$protectedObjProp',
'$privateObjProp',
'publicObjProp',
'protectedObjProp',
'privateObjProp',
'$publicStaticProp',
'$protectedStaticProp',
'$privateStaticProp',
'publicStaticProp',
'protectedStaticProp',
'privateStaticProp',
],
'::' => [
'magicObjProp1',
'magicObjProp2',
'$publicStaticProp',
'$protectedStaticProp',
'$privateStaticProp',
'publicStaticProp',
'protectedStaticProp',
'privateStaticProp',
],
];
@ -435,18 +435,18 @@ final class MethodGetCompletionItemsForClassishThingTest extends TestCase
'magicObjMethod',
'$publicObjProp',
'$protectedObjProp',
'publicObjProp',
'protectedObjProp',
'$publicStaticProp',
'$protectedStaticProp',
'publicStaticProp',
'protectedStaticProp',
],
'::' => [
'magicObjProp1',
'magicObjProp2',
'$publicStaticProp',
'$protectedStaticProp',
'publicStaticProp',
'protectedStaticProp',
],
];