|
10 | 10 | use PHPStan\PhpDocParser\Ast\ConstExpr\QuoteAwareConstExprStringNode;
|
11 | 11 | use PHPStan\PhpDocParser\Ast\Node;
|
12 | 12 | use PHPStan\PhpDocParser\Ast\NodeTraverser;
|
| 13 | +use PHPStan\PhpDocParser\Ast\PhpDoc\TemplateTagValueNode; |
13 | 14 | use PHPStan\PhpDocParser\Ast\Type\ArrayShapeItemNode;
|
14 | 15 | use PHPStan\PhpDocParser\Ast\Type\ArrayShapeNode;
|
15 | 16 | use PHPStan\PhpDocParser\Ast\Type\ArrayTypeNode;
|
16 | 17 | use PHPStan\PhpDocParser\Ast\Type\CallableTypeNode;
|
17 | 18 | use PHPStan\PhpDocParser\Ast\Type\CallableTypeParameterNode;
|
18 |
| -use PHPStan\PhpDocParser\Ast\Type\CallableTypeTemplateNode; |
19 | 19 | use PHPStan\PhpDocParser\Ast\Type\ConditionalTypeForParameterNode;
|
20 | 20 | use PHPStan\PhpDocParser\Ast\Type\ConditionalTypeNode;
|
21 | 21 | use PHPStan\PhpDocParser\Ast\Type\ConstTypeNode;
|
@@ -913,7 +913,7 @@ public function provideParseData(): array
|
913 | 913 | ],
|
914 | 914 | new IdentifierTypeNode('C'),
|
915 | 915 | [
|
916 |
| - new CallableTypeTemplateNode(new IdentifierTypeNode('A'), null), |
| 916 | + new TemplateTagValueNode('A', null, ''), |
917 | 917 | ]
|
918 | 918 | ),
|
919 | 919 | ],
|
@@ -951,7 +951,7 @@ public function provideParseData(): array
|
951 | 951 | new IdentifierTypeNode('false'),
|
952 | 952 | ]),
|
953 | 953 | [
|
954 |
| - new CallableTypeTemplateNode(new IdentifierTypeNode('T'), new IdentifierTypeNode('Model')), |
| 954 | + new TemplateTagValueNode('T', new IdentifierTypeNode('Model'), ''), |
955 | 955 | ]
|
956 | 956 | ),
|
957 | 957 | ],
|
@@ -988,11 +988,11 @@ public function provideParseData(): array
|
988 | 988 | ),
|
989 | 989 | ]),
|
990 | 990 | [
|
991 |
| - new CallableTypeTemplateNode(new IdentifierTypeNode('Tx'), new UnionTypeNode([ |
| 991 | + new TemplateTagValueNode('Tx', new UnionTypeNode([ |
992 | 992 | new IdentifierTypeNode('X'),
|
993 | 993 | new IdentifierTypeNode('Z'),
|
994 |
| - ])), |
995 |
| - new CallableTypeTemplateNode(new IdentifierTypeNode('Ty'), new IdentifierTypeNode('Y')), |
| 994 | + ]), ''), |
| 995 | + new TemplateTagValueNode('Ty', new IdentifierTypeNode('Y'), ''), |
996 | 996 | ]
|
997 | 997 | ),
|
998 | 998 | ],
|
|
0 commit comments