@@ -209,16 +209,15 @@ public static function selectFromArgs(
209
209
$ parameters = $ acceptor ->getParameters ();
210
210
if (isset ($ args [1 ]) || ($ args [0 ]->name !== null && $ args [0 ]->name ->name === 'array ' )) {
211
211
$ parameters = [
212
- new NativeParameterReflection (' separator ' , false , new StringType (), PassedByReference::createNo (), false , null ),
213
- new NativeParameterReflection (' array ' , false , new ArrayType (new MixedType (), new MixedType ()), PassedByReference::createNo (), false , null ),
212
+ new NativeParameterReflection ($ parameters [ 0 ]-> getName () , false , new StringType (), PassedByReference::createNo (), false , null ),
213
+ new NativeParameterReflection ($ parameters [ 1 ]-> getName () , false , new ArrayType (new MixedType (), new MixedType ()), PassedByReference::createNo (), false , null ),
214
214
];
215
215
} else {
216
216
$ parameters = [
217
- new NativeParameterReflection (' separator ' , false , new ArrayType (new MixedType (), new MixedType ()), PassedByReference::createNo (), false , null ),
217
+ new NativeParameterReflection ($ parameters [ 0 ]-> getName () , false , new ArrayType (new MixedType (), new MixedType ()), PassedByReference::createNo (), false , null ),
218
218
];
219
219
}
220
220
221
- $ acceptor = $ parametersAcceptors [0 ];
222
221
$ parametersAcceptors = [
223
222
new FunctionVariant (
224
223
$ acceptor ->getTemplateTypeMap (),
0 commit comments