@@ -4053,20 +4053,21 @@ public function provideMultiLinePhpDocData(): iterable
4053
4053
new IdentifierTypeNode ('array ' ),
4054
4054
[
4055
4055
new IdentifierTypeNode ('string ' ),
4056
- ArrayShapeNode::createSealed ([
4057
- new ArrayShapeItemNode (new IdentifierTypeNode ('foo1 ' ), false , new IdentifierTypeNode ('int ' )),
4058
- new ArrayShapeItemNode (new IdentifierTypeNode ('bar1 ' ), true , new IdentifierTypeNode ('true ' )),
4059
- ]),
4060
- ArrayShapeNode::createSealed ([
4061
- new ArrayShapeItemNode (new IdentifierTypeNode ('foo1 ' ), false , new IdentifierTypeNode ('int ' )),
4062
- new ArrayShapeItemNode (new IdentifierTypeNode ('foo2 ' ), false , new IdentifierTypeNode ('true ' )),
4063
- new ArrayShapeItemNode (new IdentifierTypeNode ('bar1 ' ), true , new IdentifierTypeNode ('true ' )),
4056
+ new UnionTypeNode ([
4057
+ ArrayShapeNode::createSealed ([
4058
+ new ArrayShapeItemNode (new IdentifierTypeNode ('foo1 ' ), false , new IdentifierTypeNode ('int ' )),
4059
+ new ArrayShapeItemNode (new IdentifierTypeNode ('bar1 ' ), true , new IdentifierTypeNode ('true ' )),
4060
+ ]),
4061
+ ArrayShapeNode::createSealed ([
4062
+ new ArrayShapeItemNode (new IdentifierTypeNode ('foo1 ' ), false , new IdentifierTypeNode ('int ' )),
4063
+ new ArrayShapeItemNode (new IdentifierTypeNode ('foo2 ' ), false , new IdentifierTypeNode ('true ' )),
4064
+ new ArrayShapeItemNode (new IdentifierTypeNode ('bar1 ' ), true , new IdentifierTypeNode ('true ' )),
4065
+ ]),
4064
4066
]),
4065
4067
],
4066
4068
[
4067
4069
GenericTypeNode::VARIANCE_INVARIANT ,
4068
4070
GenericTypeNode::VARIANCE_INVARIANT ,
4069
- GenericTypeNode::VARIANCE_INVARIANT ,
4070
4071
],
4071
4072
)),
4072
4073
]),
@@ -4111,20 +4112,21 @@ public function provideMultiLinePhpDocData(): iterable
4111
4112
new IdentifierTypeNode ('array ' ),
4112
4113
[
4113
4114
new IdentifierTypeNode ('string ' ),
4114
- ArrayShapeNode::createSealed ([
4115
- new ArrayShapeItemNode (new IdentifierTypeNode ('foo1 ' ), false , new IdentifierTypeNode ('int ' )),
4116
- new ArrayShapeItemNode (new IdentifierTypeNode ('bar1 ' ), true , new IdentifierTypeNode ('true ' )),
4117
- ]),
4118
- ArrayShapeNode::createSealed ([
4119
- new ArrayShapeItemNode (new IdentifierTypeNode ('foo1 ' ), false , new IdentifierTypeNode ('int ' )),
4120
- new ArrayShapeItemNode (new IdentifierTypeNode ('foo2 ' ), false , new IdentifierTypeNode ('true ' )),
4121
- new ArrayShapeItemNode (new IdentifierTypeNode ('bar1 ' ), true , new IdentifierTypeNode ('true ' )),
4115
+ new UnionTypeNode ([
4116
+ ArrayShapeNode::createSealed ([
4117
+ new ArrayShapeItemNode (new IdentifierTypeNode ('foo1 ' ), false , new IdentifierTypeNode ('int ' )),
4118
+ new ArrayShapeItemNode (new IdentifierTypeNode ('bar1 ' ), true , new IdentifierTypeNode ('true ' )),
4119
+ ]),
4120
+ ArrayShapeNode::createSealed ([
4121
+ new ArrayShapeItemNode (new IdentifierTypeNode ('foo1 ' ), false , new IdentifierTypeNode ('int ' )),
4122
+ new ArrayShapeItemNode (new IdentifierTypeNode ('foo2 ' ), false , new IdentifierTypeNode ('true ' )),
4123
+ new ArrayShapeItemNode (new IdentifierTypeNode ('bar1 ' ), true , new IdentifierTypeNode ('true ' )),
4124
+ ]),
4122
4125
]),
4123
4126
],
4124
4127
[
4125
4128
GenericTypeNode::VARIANCE_INVARIANT ,
4126
4129
GenericTypeNode::VARIANCE_INVARIANT ,
4127
- GenericTypeNode::VARIANCE_INVARIANT ,
4128
4130
],
4129
4131
)),
4130
4132
]),
@@ -4159,49 +4161,50 @@ public function provideMultiLinePhpDocData(): iterable
4159
4161
[
4160
4162
new IdentifierTypeNode ('string ' ),
4161
4163
new UnionTypeNode ([
4162
- new GenericTypeNode (
4163
- new IdentifierTypeNode ('class-string ' ),
4164
- [new IdentifierTypeNode ('Factory \\FactoryInterface ' )],
4165
- [GenericTypeNode::VARIANCE_INVARIANT ],
4166
- ),
4167
- new IdentifierTypeNode ('Factory \\FactoryInterface ' ),
4168
- ]),
4169
- new CallableTypeNode (
4170
- new IdentifierTypeNode ('callable ' ),
4171
- [
4172
- new CallableTypeParameterNode (new IdentifierTypeNode ('ContainerInterface ' ), false , false , '' , false ),
4173
- new CallableTypeParameterNode (
4174
- new NullableTypeNode (
4175
- new IdentifierTypeNode ('string ' ),
4176
- ),
4177
- false ,
4178
- false ,
4179
- '' ,
4180
- false ,
4164
+ new UnionTypeNode ([
4165
+ new GenericTypeNode (
4166
+ new IdentifierTypeNode ('class-string ' ),
4167
+ [new IdentifierTypeNode ('Factory \\FactoryInterface ' )],
4168
+ [GenericTypeNode::VARIANCE_INVARIANT ],
4181
4169
),
4182
- new CallableTypeParameterNode (
4183
- new UnionTypeNode ([
4184
- new GenericTypeNode (
4185
- new IdentifierTypeNode ('array ' ),
4186
- [new IdentifierTypeNode ('mixed ' )],
4187
- [GenericTypeNode::VARIANCE_INVARIANT ],
4170
+ new IdentifierTypeNode ('Factory \\FactoryInterface ' ),
4171
+ ]),
4172
+ new CallableTypeNode (
4173
+ new IdentifierTypeNode ('callable ' ),
4174
+ [
4175
+ new CallableTypeParameterNode (new IdentifierTypeNode ('ContainerInterface ' ), false , false , '' , false ),
4176
+ new CallableTypeParameterNode (
4177
+ new NullableTypeNode (
4178
+ new IdentifierTypeNode ('string ' ),
4188
4179
),
4189
- new IdentifierTypeNode ('null ' ),
4190
- ]),
4191
- false ,
4192
- false ,
4193
- '' ,
4194
- false ,
4195
- ),
4196
- ],
4197
- new IdentifierTypeNode ('object ' ),
4198
- [],
4199
- ),
4180
+ false ,
4181
+ false ,
4182
+ '' ,
4183
+ false ,
4184
+ ),
4185
+ new CallableTypeParameterNode (
4186
+ new UnionTypeNode ([
4187
+ new GenericTypeNode (
4188
+ new IdentifierTypeNode ('array ' ),
4189
+ [new IdentifierTypeNode ('mixed ' )],
4190
+ [GenericTypeNode::VARIANCE_INVARIANT ],
4191
+ ),
4192
+ new IdentifierTypeNode ('null ' ),
4193
+ ]),
4194
+ false ,
4195
+ false ,
4196
+ '' ,
4197
+ false ,
4198
+ ),
4199
+ ],
4200
+ new IdentifierTypeNode ('object ' ),
4201
+ [],
4202
+ ),
4203
+ ]),
4200
4204
],
4201
4205
[
4202
4206
GenericTypeNode::VARIANCE_INVARIANT ,
4203
4207
GenericTypeNode::VARIANCE_INVARIANT ,
4204
- GenericTypeNode::VARIANCE_INVARIANT ,
4205
4208
],
4206
4209
),
4207
4210
)),
0 commit comments