diff --git a/src/Ast/PhpDoc/TemplateTagValueNode.php b/src/Ast/PhpDoc/TemplateTagValueNode.php index 4c82ba7..dd59b90 100644 --- a/src/Ast/PhpDoc/TemplateTagValueNode.php +++ b/src/Ast/PhpDoc/TemplateTagValueNode.php @@ -26,7 +26,7 @@ class TemplateTagValueNode implements PhpDocTagValueNode public function __toString(): string { - $bound = $this->bound ? " of {$this->bound}" : ''; + $bound = isset($this->bound) ? " of {$this->bound}" : ''; return trim("{$this->name}{$bound} {$this->description}"); }