Skip to content

Commit bd33348

Browse files
committed
Minor fixes
1 parent 851121b commit bd33348

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

src/Psalm/Codebase.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1593,12 +1593,6 @@ public function getCompletionItemsForClassishThing(
15931593
error_log($e->getMessage());
15941594
}
15951595
}
1596-
if ($gap === '->') {
1597-
$method_storages += $class_storage->pseudo_methods;
1598-
}
1599-
if ($gap === '::') {
1600-
$method_storages += $class_storage->pseudo_static_methods;
1601-
}
16021596

16031597
foreach ($method_storages as $method_storage) {
16041598
if (!in_array($method_storage->visibility, $allow_visibilities)) {

tests/Internal/Codebase/MethodGetCompletionItemsForClassishThingTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,7 @@ class A extends C {
437437
'magicObjProp1',
438438
'magicObjProp2',
439439

440+
'magicStaticMethod',
440441
'magicObjMethod',
441442

442443
'publicObjProp',

tests/StubTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ public function testStubFileConstant(): void
222222
public function testStubFileParentClass(): void
223223
{
224224
$this->expectException(CodeException::class);
225-
$this->expectExceptionMessage('MethodSignatureMismatch');
225+
$this->expectExceptionMessage('ImplementedParamTypeMismatch');
226226
$this->project_analyzer = $this->getProjectAnalyzerWithConfig(
227227
TestConfig::loadFromXML(
228228
dirname(__DIR__),

0 commit comments

Comments
 (0)