1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-22 05:41:20 +01:00

Make sure @property types have from_docblock === true, fixes #351

This commit is contained in:
Matthew Brown 2017-11-28 23:00:26 -05:00
parent 681da41f0f
commit 5df8935e14

View File

@ -220,6 +220,7 @@ class DependencyFinderVisitor extends PhpParser\NodeVisitorAbstract implements P
if ($docblock_info->properties) {
foreach ($docblock_info->properties as $property) {
$pseudo_property_type = Type::parseString($property['type']);
$pseudo_property_type->setFromDocblock();
$storage->pseudo_property_set_types[$property['name']] = $pseudo_property_type;
$storage->pseudo_property_get_types[$property['name']] = $pseudo_property_type;