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:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user