Skip to content

Commit

Permalink
Merge pull request #306 from kea/fix-example4
Browse files Browse the repository at this point in the history
Remove deprecated StaticMethod and fix comment
  • Loading branch information
jaapio authored Oct 19, 2021
2 parents 0005eb9 + c8b2244 commit 622548b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions examples/04-adding-your-own-tag.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
require_once(__DIR__ . '/../vendor/autoload.php');

use phpDocumentor\Reflection\DocBlock\Serializer;
use phpDocumentor\Reflection\DocBlock\Tags\Factory\StaticMethod;
use phpDocumentor\Reflection\DocBlock\Tag;
use phpDocumentor\Reflection\DocBlockFactory;
use phpDocumentor\Reflection\DocBlock\Description;
use phpDocumentor\Reflection\DocBlock\DescriptionFactory;
Expand All @@ -30,9 +30,10 @@
* documentation in the form of a Value Object whose properties should not be changed after instantiation (it should be
* 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.
Expand Down

0 comments on commit 622548b

Please sign in to comment.