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:
parent
14040ed1fa
commit
7206db2cb6
@ -273,6 +273,8 @@ class Populator
|
|||||||
private function populateOverriddenMethods(
|
private function populateOverriddenMethods(
|
||||||
ClassLikeStorage $storage
|
ClassLikeStorage $storage
|
||||||
): void {
|
): void {
|
||||||
|
$storage->documenting_method_ids = [];
|
||||||
|
|
||||||
foreach ($storage->methods as $method_name => $method_storage) {
|
foreach ($storage->methods as $method_name => $method_storage) {
|
||||||
if (isset($storage->overridden_method_ids[$method_name])) {
|
if (isset($storage->overridden_method_ids[$method_name])) {
|
||||||
$overridden_method_ids = $storage->overridden_method_ids[$method_name];
|
$overridden_method_ids = $storage->overridden_method_ids[$method_name];
|
||||||
|
@ -1181,8 +1181,6 @@ class StubTest extends TestCase
|
|||||||
|
|
||||||
public function testStubReplacingInterfaceDocblock(): void
|
public function testStubReplacingInterfaceDocblock(): void
|
||||||
{
|
{
|
||||||
$this->markTestSkipped('Tis broken');
|
|
||||||
|
|
||||||
$this->project_analyzer = $this->getProjectAnalyzerWithConfig(
|
$this->project_analyzer = $this->getProjectAnalyzerWithConfig(
|
||||||
TestConfig::loadFromXML(
|
TestConfig::loadFromXML(
|
||||||
dirname(__DIR__),
|
dirname(__DIR__),
|
||||||
|
Loading…
Reference in New Issue
Block a user