Skip to content

Commit 3d14696

Browse files
committed
fix: resolve hints that can be strings
1 parent f952902 commit 3d14696

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Parser/NodeVisitor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ protected function addProperty(PropertyNode $node)
260260
$property->setErrors($errors);
261261
} else {
262262
if ($tag = $comment->getTag('var')) {
263-
$property->setHint($this->resolveHint($tag[0][0]));
263+
$property->setHint(is_array($tag[0][0]) ? $this->resolveHint($tag[0][0]) : $tag[0][0]);
264264
$property->setHintDesc($tag[0][1]);
265265
}
266266

0 commit comments

Comments
 (0)