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

Fix infinite recursion on property types

This commit is contained in:
Matthew Brown 2019-07-22 23:54:33 -04:00
parent c283f0877d
commit c76380174f

View File

@ -320,10 +320,12 @@ class Scanner
$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]
);
}
}
}