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__),