Skip to content
Permalink
Browse files

Fix infinite recursion on property types

  • Loading branch information...
muglug committed Jul 23, 2019
1 parent c283f08 commit c76380174f6cbb0f17174d64cf0eadbe002e2dc2
Showing with 6 additions and 4 deletions.
  1. +6 −4 src/Psalm/Internal/Codebase/Scanner.php
@@ -320,10 +320,12 @@ public function queueClassLikeForScanning(
$public_mapped_properties = PropertyMap::getPropertyMap()[$fq_classlike_name_lc];
foreach ($public_mapped_properties as $public_mapped_property) {
if (strtolower($public_mapped_property) !== $fq_classlike_name_lc) {
$property_type = \Psalm\Type::parseString($public_mapped_property);
$property_type->queueClassLikesForScanning($this->codebase);
}
$property_type = \Psalm\Type::parseString($public_mapped_property);
$property_type->queueClassLikesForScanning(
$this->codebase,
null,
[$fq_classlike_name_lc => true]
);
}
}
}

0 comments on commit c763801

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