Skip to content

Commit

Permalink
[BUGFIX] Implement Tag interface for DocBlock tags
Browse files Browse the repository at this point in the history
Since phpdocumentor/reflection-docbloc 5.2.x a tag is required to
implement also the phpDocumentor\Reflection\DocBlock\Tags\Formatter\Tag
interface.

This patch implements the tag interface for the Null_ tag defined in
Extbase.

Resolves: #91832
Releases: master, 10.4
Change-Id: Idb836dc3f8816a5c2c40d429a61dcda1cd27fd7f
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/65025
Tested-by: TYPO3com <noreply@typo3.com>
Tested-by: Simon Gilli <typo3@gilbertsoft.org>
Tested-by: Benni Mack <benni@typo3.org>
Reviewed-by: Simon Gilli <typo3@gilbertsoft.org>
Reviewed-by: Benni Mack <benni@typo3.org>
  • Loading branch information
gilbertsoft authored and bmack committed Jul 21, 2020
1 parent 68cba1d commit ef555ae
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions typo3/sysext/extbase/Classes/Reflection/DocBlock/Tags/Null_.php
Expand Up @@ -17,14 +17,31 @@

namespace TYPO3\CMS\Extbase\Reflection\DocBlock\Tags;

use phpDocumentor\Reflection\DocBlock\Tag;
use phpDocumentor\Reflection\DocBlock\Tags\Factory\StaticMethod;
use phpDocumentor\Reflection\DocBlock\Tags\Formatter;

/**
* Class TYPO3\CMS\Extbase\Reflection\DocBlock\Tags\Null_
*/
class Null_ implements StaticMethod
class Null_ implements Tag, StaticMethod
{
public static function create($body)
public function getName(): string
{
return 'Null';
}

public static function create($body): void
{
}

public function render(?Formatter $formatter = null): string
{
return '';
}

public function __toString(): string
{
return '';
}
}

0 comments on commit ef555ae

Please sign in to comment.