public function enterNode(Node $node)
{
parent::enterNode($node);
$comment = $node->getDocComment();
if ($comment) {
$regex = "(@(param|return|var|type)\\h+(\\S+))";
$comment->setText(preg_replace_callback($regex, function ($match) {
$type = $this->parseTypeDecl($match[2]);
return "@{$match[1]} {$type}";
}, $comment->getText()));
}
}