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

Fix #4705 - clear documenting method ids when scanning stubs

This commit is contained in:
Matt Brown 2020-12-01 11:23:38 -05:00 committed by Daniil Gentili
parent 14040ed1fa
commit 7206db2cb6
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7
2 changed files with 2 additions and 2 deletions

View File

@ -273,6 +273,8 @@ class Populator
private function populateOverriddenMethods(
ClassLikeStorage $storage
): void {
$storage->documenting_method_ids = [];
foreach ($storage->methods as $method_name => $method_storage) {
if (isset($storage->overridden_method_ids[$method_name])) {
$overridden_method_ids = $storage->overridden_method_ids[$method_name];

View File

@ -1181,8 +1181,6 @@ class StubTest extends TestCase
public function testStubReplacingInterfaceDocblock(): void
{
$this->markTestSkipped('Tis broken');
$this->project_analyzer = $this->getProjectAnalyzerWithConfig(
TestConfig::loadFromXML(
dirname(__DIR__),