diff --git a/src/DocBlock/Description.php b/src/DocBlock/Description.php index a31b2892..ae53d5fc 100644 --- a/src/DocBlock/Description.php +++ b/src/DocBlock/Description.php @@ -93,6 +93,10 @@ public function getTags(): array */ public function render(?Formatter $formatter = null): string { + if ($this->tags === []) { + return $this->bodyTemplate; + } + if ($formatter === null) { $formatter = new PassthroughFormatter(); }