File tree Expand file tree Collapse file tree 3 files changed +5
-9
lines changed
src/phpDocumentor/Reflection/DocBlock Expand file tree Collapse file tree 3 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -209,14 +209,12 @@ public static function export()
209
209
}
210
210
211
211
/**
212
- * Returns the exported information (we should use the export static method
213
- * BUT this throws an exception at this point).
212
+ * Returns the long description as a string.
214
213
*
215
214
* @return string
216
- * @codeCoverageIgnore Not yet implemented
217
215
*/
218
216
public function __toString ()
219
217
{
220
- return ' Not yet implemented ' ;
218
+ return $ this -> getContents () ;
221
219
}
222
220
}
Original file line number Diff line number Diff line change @@ -182,7 +182,7 @@ public function getDocComment(DocBlock $docblock)
182
182
183
183
/** @var Tag $tag */
184
184
foreach ($ docblock ->getTags () as $ tag ) {
185
- $ tagText = " @ { $ tag -> getName ()} { $ tag-> getContent ()}" ;
185
+ $ tagText = ( string ) $ tag ;
186
186
if ($ this ->lineLength ) {
187
187
$ tagText = wordwrap ($ tagText , $ wrapLength );
188
188
}
Original file line number Diff line number Diff line change @@ -366,14 +366,12 @@ public static function export()
366
366
}
367
367
368
368
/**
369
- * Returns the exported information (we should use the export static method
370
- * BUT this throws an exception at this point).
369
+ * Returns the tag as a serialized string
371
370
*
372
371
* @return string
373
- * @codeCoverageIgnore Not yet implemented
374
372
*/
375
373
public function __toString ()
376
374
{
377
- return ' Not yet implemented ' ;
375
+ return " @ { $ this -> getName ()} { $ this -> getContent ()}" ;
378
376
}
379
377
}
You can’t perform that action at this time.
0 commit comments