From bd33348206f5cc09515ae2f9dc8e86c3c35b4cd9 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Mon, 27 Nov 2023 13:23:52 +0100 Subject: [PATCH] Minor fixes --- src/Psalm/Codebase.php | 6 ------ .../MethodGetCompletionItemsForClassishThingTest.php | 1 + tests/StubTest.php | 2 +- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/Psalm/Codebase.php b/src/Psalm/Codebase.php index 7e157e327..a84014d8a 100644 --- a/src/Psalm/Codebase.php +++ b/src/Psalm/Codebase.php @@ -1593,12 +1593,6 @@ final class Codebase error_log($e->getMessage()); } } - if ($gap === '->') { - $method_storages += $class_storage->pseudo_methods; - } - if ($gap === '::') { - $method_storages += $class_storage->pseudo_static_methods; - } foreach ($method_storages as $method_storage) { if (!in_array($method_storage->visibility, $allow_visibilities)) { diff --git a/tests/Internal/Codebase/MethodGetCompletionItemsForClassishThingTest.php b/tests/Internal/Codebase/MethodGetCompletionItemsForClassishThingTest.php index 951955323..836e7ae0f 100644 --- a/tests/Internal/Codebase/MethodGetCompletionItemsForClassishThingTest.php +++ b/tests/Internal/Codebase/MethodGetCompletionItemsForClassishThingTest.php @@ -437,6 +437,7 @@ final class MethodGetCompletionItemsForClassishThingTest extends TestCase 'magicObjProp1', 'magicObjProp2', + 'magicStaticMethod', 'magicObjMethod', 'publicObjProp', diff --git a/tests/StubTest.php b/tests/StubTest.php index 87f3bfa42..5b9aa0eb0 100644 --- a/tests/StubTest.php +++ b/tests/StubTest.php @@ -222,7 +222,7 @@ class StubTest extends TestCase public function testStubFileParentClass(): void { $this->expectException(CodeException::class); - $this->expectExceptionMessage('MethodSignatureMismatch'); + $this->expectExceptionMessage('ImplementedParamTypeMismatch'); $this->project_analyzer = $this->getProjectAnalyzerWithConfig( TestConfig::loadFromXML( dirname(__DIR__),