Remove deprecated StaticMethod and fix comment

This commit is contained in:
Manuel Kea Baldassarri
2021-10-16 09:24:17 +02:00
parent 0005eb9eae
commit c8b2244018
+4 -3
View File
@@ -6,7 +6,7 @@
require_once(__DIR__ . '/../vendor/autoload.php'); require_once(__DIR__ . '/../vendor/autoload.php');
use phpDocumentor\Reflection\DocBlock\Serializer; use phpDocumentor\Reflection\DocBlock\Serializer;
use phpDocumentor\Reflection\DocBlock\Tags\Factory\StaticMethod; use phpDocumentor\Reflection\DocBlock\Tag;
use phpDocumentor\Reflection\DocBlockFactory; use phpDocumentor\Reflection\DocBlockFactory;
use phpDocumentor\Reflection\DocBlock\Description; use phpDocumentor\Reflection\DocBlock\Description;
use phpDocumentor\Reflection\DocBlock\DescriptionFactory; use phpDocumentor\Reflection\DocBlock\DescriptionFactory;
@@ -30,9 +30,10 @@ use Webmozart\Assert\Assert;
* documentation in the form of a Value Object whose properties should not be changed after instantiation (it should be * documentation in the form of a Value Object whose properties should not be changed after instantiation (it should be
* immutable). * immutable).
* *
* > Important: Tag classes that act as Factories using the `create` method should implement the TagFactory interface. * > Important: Tag classes that act as Factories using the `create` method should implement the Tag interface.
* > Instead, you could extend the abstract class BaseTag that already implements the Tag interface
*/ */
final class MyTag extends BaseTag implements StaticMethod final class MyTag extends BaseTag
{ {
/** /**
* A required property that is used by Formatters to reconstitute the complete tag line. * A required property that is used by Formatters to reconstitute the complete tag line.