1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-04 02:27:59 +01:00

Minor fixes

This commit is contained in:
Daniil Gentili 2023-11-27 13:23:52 +01:00
parent 851121b48c
commit bd33348206
3 changed files with 2 additions and 7 deletions

View File

@ -1593,12 +1593,6 @@ final class Codebase
error_log($e->getMessage()); 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) { foreach ($method_storages as $method_storage) {
if (!in_array($method_storage->visibility, $allow_visibilities)) { if (!in_array($method_storage->visibility, $allow_visibilities)) {

View File

@ -437,6 +437,7 @@ final class MethodGetCompletionItemsForClassishThingTest extends TestCase
'magicObjProp1', 'magicObjProp1',
'magicObjProp2', 'magicObjProp2',
'magicStaticMethod',
'magicObjMethod', 'magicObjMethod',
'publicObjProp', 'publicObjProp',

View File

@ -222,7 +222,7 @@ class StubTest extends TestCase
public function testStubFileParentClass(): void public function testStubFileParentClass(): void
{ {
$this->expectException(CodeException::class); $this->expectException(CodeException::class);
$this->expectExceptionMessage('MethodSignatureMismatch'); $this->expectExceptionMessage('ImplementedParamTypeMismatch');
$this->project_analyzer = $this->getProjectAnalyzerWithConfig( $this->project_analyzer = $this->getProjectAnalyzerWithConfig(
TestConfig::loadFromXML( TestConfig::loadFromXML(
dirname(__DIR__), dirname(__DIR__),