|
22 | 22 | use phpDocumentor\Reflection\Assets\CustomTagFactory; |
23 | 23 | use phpDocumentor\Reflection\DocBlock\Tags\Author; |
24 | 24 | use phpDocumentor\Reflection\DocBlock\Tags\Deprecated; |
| 25 | +use phpDocumentor\Reflection\DocBlock\Tags\Extends_; |
25 | 26 | use phpDocumentor\Reflection\DocBlock\Tags\Formatter; |
26 | 27 | use phpDocumentor\Reflection\DocBlock\Tags\Formatter\PassthroughFormatter; |
27 | 28 | use phpDocumentor\Reflection\DocBlock\Tags\Generic; |
| 29 | +use phpDocumentor\Reflection\DocBlock\Tags\Implements_; |
28 | 30 | use phpDocumentor\Reflection\DocBlock\Tags\Method; |
29 | 31 | use phpDocumentor\Reflection\DocBlock\Tags\Mixin; |
30 | 32 | use phpDocumentor\Reflection\DocBlock\Tags\Param; |
|
33 | 35 | use phpDocumentor\Reflection\DocBlock\Tags\PropertyWrite; |
34 | 36 | use phpDocumentor\Reflection\DocBlock\Tags\Return_; |
35 | 37 | use phpDocumentor\Reflection\DocBlock\Tags\See; |
| 38 | +use phpDocumentor\Reflection\DocBlock\Tags\Template; |
36 | 39 | use phpDocumentor\Reflection\DocBlock\Tags\TemplateCovariant; |
| 40 | +use phpDocumentor\Reflection\DocBlock\Tags\TemplateExtends; |
| 41 | +use phpDocumentor\Reflection\DocBlock\Tags\TemplateImplements; |
37 | 42 | use phpDocumentor\Reflection\DocBlock\Tags\Throws; |
38 | 43 | use phpDocumentor\Reflection\DocBlock\Tags\Var_; |
39 | 44 | use phpDocumentor\Reflection\Fqsen; |
@@ -583,7 +588,14 @@ public static function provideCreateWithTagWithTypesData(): array |
583 | 588 | ['@return string', Return_::class], |
584 | 589 | ['@throws Throwable', Throws::class], |
585 | 590 | ['@var string $var', Var_::class], |
586 | | - ['@template-covariant string', TemplateCovariant::class], |
| 591 | + ['@template T', Template::class], |
| 592 | + ['@template-covariant T', TemplateCovariant::class], |
| 593 | + ['@extends Foo<Bar>', Extends_::class], |
| 594 | + ['@implements Foo<Bar>', Implements_::class], |
| 595 | + |
| 596 | + // TODO: add factories for this tags |
| 597 | + // ['@template-extends Foo', TemplateExtends::class], |
| 598 | + // ['@template-implements Foo', TemplateImplements::class], |
587 | 599 | ]; |
588 | 600 | } |
589 | 601 | } |
0 commit comments