mirror of
https://github.com/barryvdh/ReflectionDocBlock.git
synced 2026-08-18 10:07:12 +00:00
Add __toString() methods for Description and Tag
And let the Serializer make use of the (string) $tag
This commit is contained in:
@@ -182,7 +182,7 @@ class Serializer
|
||||
|
||||
/** @var Tag $tag */
|
||||
foreach ($docblock->getTags() as $tag) {
|
||||
$tagText = "@{$tag->getName()} {$tag->getContent()}";
|
||||
$tagText = (string) $tag;
|
||||
if ($this->lineLength) {
|
||||
$tagText = wordwrap($tagText, $wrapLength);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user