Skip to content

Commit 622548b

Browse files
authored
Merge pull request #306 from kea/fix-example4
Remove deprecated StaticMethod and fix comment
2 parents 0005eb9 + c8b2244 commit 622548b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

examples/04-adding-your-own-tag.php

+4-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
require_once(__DIR__ . '/../vendor/autoload.php');
77

88
use phpDocumentor\Reflection\DocBlock\Serializer;
9-
use phpDocumentor\Reflection\DocBlock\Tags\Factory\StaticMethod;
9+
use phpDocumentor\Reflection\DocBlock\Tag;
1010
use phpDocumentor\Reflection\DocBlockFactory;
1111
use phpDocumentor\Reflection\DocBlock\Description;
1212
use phpDocumentor\Reflection\DocBlock\DescriptionFactory;
@@ -30,9 +30,10 @@
3030
* documentation in the form of a Value Object whose properties should not be changed after instantiation (it should be
3131
* immutable).
3232
*
33-
* > Important: Tag classes that act as Factories using the `create` method should implement the TagFactory interface.
33+
* > Important: Tag classes that act as Factories using the `create` method should implement the Tag interface.
34+
* > Instead, you could extend the abstract class BaseTag that already implements the Tag interface
3435
*/
35-
final class MyTag extends BaseTag implements StaticMethod
36+
final class MyTag extends BaseTag
3637
{
3738
/**
3839
* A required property that is used by Formatters to reconstitute the complete tag line.

0 commit comments

Comments
 (0)