Descriptions were not separated into tags

This commit is contained in:
Mike van Riel
2015-06-13 20:27:27 +02:00
committed by Mike van Riel
parent ab3ebf467c
commit 53d5adb324
3 changed files with 9 additions and 3 deletions
+6 -1
View File
@@ -14,6 +14,7 @@ namespace phpDocumentor\Reflection;
use phpDocumentor\Reflection\DocBlock\DescriptionFactory;
use phpDocumentor\Reflection\DocBlock\TagFactory;
use phpDocumentor\Reflection\Types\Context;
final class DocBlockFactory implements DocBlockFactoryInterface
{
@@ -80,12 +81,16 @@ final class DocBlockFactory implements DocBlockFactoryInterface
$docblock = $docblock->getDocComment();
}
if ($context === null) {
$context = new Context('');
}
$parts = $this->splitDocBlock($this->stripDocComment($docblock));
list($templateMarker, $summary, $description, $tags) = $parts;
return new DocBlock(
$summary,
new DocBlock\Description($description),
$this->descriptionFactory->create($description, $context),
$this->parseTagBlock($tags),
$context,
$location,