Skip to content
Permalink
Browse files

Fix #1935 - clear stub grandchildren

  • Loading branch information...
muglug committed Jul 11, 2019
1 parent 7d05568 commit 12eeb8b32075f37304144d7ce217b989f56976ab
Showing with 9 additions and 1 deletion.
  1. +6 −0 src/Psalm/Internal/Codebase/Populator.php
  2. +1 −1 tests/StubTest.php
  3. +2 −0 tests/fixtures/stubs/templated_class.php
@@ -117,6 +117,12 @@ public function populateCodebase(\Psalm\Codebase $codebase)
}
}
foreach ($class_storage->dependent_classlikes as $dependent_classlike_name => $_) {
$dependee_storage = $this->classlike_storage_provider->get($dependent_classlike_name);
$class_storage->dependent_classlikes += $dependee_storage->dependent_classlikes;
}
if ($class_storage->aliases) {
foreach ($class_storage->public_class_constant_nodes as $const_name => $node) {
$const_type = \Psalm\Internal\Analyzer\StatementsAnalyzer::getSimpleType(
@@ -929,7 +929,7 @@ public function foo(string $a) {
*/
public function testStubFileWithTemplatedClassDefinitionAndMagicMethodOverride()
{
$this->markTestSkipped('Currently broken');
//$this->markTestSkipped('Currently broken');
$this->project_analyzer = $this->getProjectAnalyzerWithConfig(
TestConfig::loadFromXML(
dirname(__DIR__),
@@ -10,3 +10,5 @@ class A {
*/
public function find($id, $lockMode = null, $lockVersion = null) {}
}

0 comments on commit 12eeb8b

Please sign in to comment.
You can’t perform that action at this time.