diff --git a/src/phpDocumentor/Reflection/DocBlock/Description.php b/src/phpDocumentor/Reflection/DocBlock/Description.php index cbd6b07..0d6def2 100644 --- a/src/phpDocumentor/Reflection/DocBlock/Description.php +++ b/src/phpDocumentor/Reflection/DocBlock/Description.php @@ -209,14 +209,12 @@ class Description implements \Reflector } /** - * Returns the exported information (we should use the export static method - * BUT this throws an exception at this point). + * Returns the long description as a string. * * @return string - * @codeCoverageIgnore Not yet implemented */ public function __toString() { - return 'Not yet implemented'; + return $this->getContents(); } } diff --git a/src/phpDocumentor/Reflection/DocBlock/Serializer.php b/src/phpDocumentor/Reflection/DocBlock/Serializer.php index ac92c09..c161785 100644 --- a/src/phpDocumentor/Reflection/DocBlock/Serializer.php +++ b/src/phpDocumentor/Reflection/DocBlock/Serializer.php @@ -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); } diff --git a/src/phpDocumentor/Reflection/DocBlock/Tag.php b/src/phpDocumentor/Reflection/DocBlock/Tag.php index e32e813..a96db09 100644 --- a/src/phpDocumentor/Reflection/DocBlock/Tag.php +++ b/src/phpDocumentor/Reflection/DocBlock/Tag.php @@ -366,14 +366,12 @@ class Tag implements \Reflector } /** - * Returns the exported information (we should use the export static method - * BUT this throws an exception at this point). + * Returns the tag as a serialized string * * @return string - * @codeCoverageIgnore Not yet implemented */ public function __toString() { - return 'Not yet implemented'; + return "@{$this->getName()} {$this->getContent()}"; } }