2525use PHPStan \PhpDocParser \Ast \PhpDoc \ExtendsTagValueNode ;
2626use PHPStan \PhpDocParser \Ast \PhpDoc \GenericTagValueNode ;
2727use PHPStan \PhpDocParser \Ast \PhpDoc \ImplementsTagValueNode ;
28- use PHPStan \PhpDocParser \Ast \PhpDoc \SealedTagValueNode ;
2928use PHPStan \PhpDocParser \Ast \PhpDoc \InvalidTagValueNode ;
3029use PHPStan \PhpDocParser \Ast \PhpDoc \MethodTagValueNode ;
3130use PHPStan \PhpDocParser \Ast \PhpDoc \MethodTagValueParameterNode ;
4342use PHPStan \PhpDocParser \Ast \PhpDoc \RequireExtendsTagValueNode ;
4443use PHPStan \PhpDocParser \Ast \PhpDoc \RequireImplementsTagValueNode ;
4544use PHPStan \PhpDocParser \Ast \PhpDoc \ReturnTagValueNode ;
45+ use PHPStan \PhpDocParser \Ast \PhpDoc \SealedTagValueNode ;
4646use PHPStan \PhpDocParser \Ast \PhpDoc \SelfOutTagValueNode ;
4747use PHPStan \PhpDocParser \Ast \PhpDoc \TemplateTagValueNode ;
4848use PHPStan \PhpDocParser \Ast \PhpDoc \ThrowsTagValueNode ;
@@ -2221,7 +2221,10 @@ public function provideSealedTagsData(): Iterator
22212221 new PhpDocTagNode (
22222222 '@phpstan-sealed ' ,
22232223 new SealedTagValueNode (
2224- new IdentifierTypeNode ('Foo|Bar ' ),
2224+ new UnionTypeNode ([
2225+ new IdentifierTypeNode ('Foo ' ),
2226+ new IdentifierTypeNode ('Bar ' ),
2227+ ]),
22252228 '' ,
22262229 ),
22272230 ),
@@ -2235,7 +2238,10 @@ public function provideSealedTagsData(): Iterator
22352238 new PhpDocTagNode (
22362239 '@phpstan-sealed ' ,
22372240 new SealedTagValueNode (
2238- new IdentifierTypeNode ('Foo|Bar ' ),
2241+ new UnionTypeNode ([
2242+ new IdentifierTypeNode ('Foo ' ),
2243+ new IdentifierTypeNode ('Bar ' ),
2244+ ]),
22392245 'optional description ' ,
22402246 ),
22412247 ),
@@ -2249,7 +2255,10 @@ public function provideSealedTagsData(): Iterator
22492255 new PhpDocTagNode (
22502256 '@psalm-inheritors ' ,
22512257 new SealedTagValueNode (
2252- new IdentifierTypeNode ('Foo|Bar ' ),
2258+ new UnionTypeNode ([
2259+ new IdentifierTypeNode ('Foo ' ),
2260+ new IdentifierTypeNode ('Bar ' ),
2261+ ]),
22532262 'optional description ' ,
22542263 ),
22552264 ),
0 commit comments