mirror of
https://github.com/barryvdh/ReflectionDocBlock.git
synced 2026-08-18 10:07:12 +00:00
Remove final from DescriptionFactory; making an interface is overkill
This commit is contained in:
committed by
Mike van Riel
parent
21e6a9679a
commit
e586a50170
@@ -14,7 +14,7 @@ namespace phpDocumentor\Reflection\DocBlock;
|
||||
|
||||
use phpDocumentor\Reflection\Types\Context;
|
||||
|
||||
final class DescriptionFactory
|
||||
class DescriptionFactory
|
||||
{
|
||||
/** @var TagFactory */
|
||||
private $tagFactory;
|
||||
@@ -100,7 +100,7 @@ final class DescriptionFactory
|
||||
$tagCount = 0;
|
||||
$tags = [];
|
||||
for ($i = 1; $i < $count; $i += 2) {
|
||||
$tokens[$i] = ++$tagCount;
|
||||
$tokens[$i] = '%' . ++$tagCount . '$s';
|
||||
$tags[] = $this->tagFactory->create($tokens[$i], $context);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user