mirror of
https://github.com/barryvdh/ReflectionDocBlock.git
synced 2026-08-18 10:07:12 +00:00
Descriptions were not separated into tags
This commit is contained in:
committed by
Mike van Riel
parent
ab3ebf467c
commit
53d5adb324
@@ -100,8 +100,8 @@ class DescriptionFactory
|
||||
$tagCount = 0;
|
||||
$tags = [];
|
||||
for ($i = 1; $i < $count; $i += 2) {
|
||||
$tokens[$i] = '%' . ++$tagCount . '$s';
|
||||
$tags[] = $this->tagFactory->create($tokens[$i], $context);
|
||||
$tokens[$i] = '%' . ++$tagCount . '$s';
|
||||
}
|
||||
|
||||
//In order to allow "literal" inline tags, the otherwise invalid
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
|
||||
namespace phpDocumentor\Reflection\DocBlock;
|
||||
|
||||
use phpDocumentor\Reflection\DocBlock\Tags\Other;
|
||||
use phpDocumentor\Reflection\FqsenResolver;
|
||||
use phpDocumentor\Reflection\Types\Context;
|
||||
|
||||
@@ -84,7 +85,7 @@ final class TagFactory
|
||||
}
|
||||
list($tagName, $tagBody) = $this->extractTagParts($tagLine);
|
||||
|
||||
$handler = Tag::class;
|
||||
$handler = Other::class;
|
||||
if (isset($this->tagHandlerMappings[$tagName])) {
|
||||
$handler = $this->tagHandlerMappings[$tagName];
|
||||
} elseif ($this->isAnnotation($tagName)) {
|
||||
|
||||
Reference in New Issue
Block a user