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:
parent
681da41f0f
commit
5df8935e14
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user