25
25
use PHPStan \PhpDocParser \Ast \PhpDoc \ExtendsTagValueNode ;
26
26
use PHPStan \PhpDocParser \Ast \PhpDoc \GenericTagValueNode ;
27
27
use PHPStan \PhpDocParser \Ast \PhpDoc \ImplementsTagValueNode ;
28
- use PHPStan \PhpDocParser \Ast \PhpDoc \SealedTagValueNode ;
29
28
use PHPStan \PhpDocParser \Ast \PhpDoc \InvalidTagValueNode ;
30
29
use PHPStan \PhpDocParser \Ast \PhpDoc \MethodTagValueNode ;
31
30
use PHPStan \PhpDocParser \Ast \PhpDoc \MethodTagValueParameterNode ;
43
42
use PHPStan \PhpDocParser \Ast \PhpDoc \RequireExtendsTagValueNode ;
44
43
use PHPStan \PhpDocParser \Ast \PhpDoc \RequireImplementsTagValueNode ;
45
44
use PHPStan \PhpDocParser \Ast \PhpDoc \ReturnTagValueNode ;
45
+ use PHPStan \PhpDocParser \Ast \PhpDoc \SealedTagValueNode ;
46
46
use PHPStan \PhpDocParser \Ast \PhpDoc \SelfOutTagValueNode ;
47
47
use PHPStan \PhpDocParser \Ast \PhpDoc \TemplateTagValueNode ;
48
48
use PHPStan \PhpDocParser \Ast \PhpDoc \ThrowsTagValueNode ;
@@ -2221,7 +2221,10 @@ public function provideSealedTagsData(): Iterator
2221
2221
new PhpDocTagNode (
2222
2222
'@phpstan-sealed ' ,
2223
2223
new SealedTagValueNode (
2224
- new IdentifierTypeNode ('Foo|Bar ' ),
2224
+ new UnionTypeNode ([
2225
+ new IdentifierTypeNode ('Foo ' ),
2226
+ new IdentifierTypeNode ('Bar ' ),
2227
+ ]),
2225
2228
'' ,
2226
2229
),
2227
2230
),
@@ -2235,7 +2238,10 @@ public function provideSealedTagsData(): Iterator
2235
2238
new PhpDocTagNode (
2236
2239
'@phpstan-sealed ' ,
2237
2240
new SealedTagValueNode (
2238
- new IdentifierTypeNode ('Foo|Bar ' ),
2241
+ new UnionTypeNode ([
2242
+ new IdentifierTypeNode ('Foo ' ),
2243
+ new IdentifierTypeNode ('Bar ' ),
2244
+ ]),
2239
2245
'optional description ' ,
2240
2246
),
2241
2247
),
@@ -2249,7 +2255,10 @@ public function provideSealedTagsData(): Iterator
2249
2255
new PhpDocTagNode (
2250
2256
'@psalm-inheritors ' ,
2251
2257
new SealedTagValueNode (
2252
- new IdentifierTypeNode ('Foo|Bar ' ),
2258
+ new UnionTypeNode ([
2259
+ new IdentifierTypeNode ('Foo ' ),
2260
+ new IdentifierTypeNode ('Bar ' ),
2261
+ ]),
2253
2262
'optional description ' ,
2254
2263
),
2255
2264
),
0 commit comments