File tree 1 file changed +32
-0
lines changed
1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change @@ -3357,6 +3357,38 @@ public function provideTemplateTagsData(): Iterator
3357
3357
),
3358
3358
]),
3359
3359
];
3360
+
3361
+ yield [
3362
+ 'OK with default and description ' ,
3363
+ '/** @template T = string the value type */ ' ,
3364
+ new PhpDocNode ([
3365
+ new PhpDocTagNode (
3366
+ '@template ' ,
3367
+ new TemplateTagValueNode (
3368
+ 'T ' ,
3369
+ null ,
3370
+ 'the value type ' ,
3371
+ new IdentifierTypeNode ('string ' )
3372
+ )
3373
+ ),
3374
+ ]),
3375
+ ];
3376
+
3377
+ yield [
3378
+ 'OK with bound and default and description ' ,
3379
+ '/** @template T of string = \'\' the value type */ ' ,
3380
+ new PhpDocNode ([
3381
+ new PhpDocTagNode (
3382
+ '@template ' ,
3383
+ new TemplateTagValueNode (
3384
+ 'T ' ,
3385
+ new IdentifierTypeNode ('string ' ),
3386
+ 'the value type ' ,
3387
+ new ConstTypeNode (new ConstExprStringNode ('' ))
3388
+ )
3389
+ ),
3390
+ ]),
3391
+ ];
3360
3392
}
3361
3393
3362
3394
public function provideExtendsTagsData (): Iterator
You can’t perform that action at this time.
0 commit comments