We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a3e22c commit d103774Copy full SHA for d103774
src/Barryvdh/Reflection/DocBlock/Serializer.php
@@ -207,7 +207,7 @@ public function getDocComment(DocBlock $docblock)
207
}
208
$text = str_replace("\n", "\n{$indent} * ", $text);
209
210
- $comment = "{$firstIndent}/**\n{$indent} * {$text}\n{$indent} *\n";
+ $comment = !empty($text)? "{$firstIndent}/**\n{$indent} * {$text}\n{$indent} *\n" : "{$firstIndent}/**\n";
211
212
$tags = array_values($docblock->getTags());
213
0 commit comments