public static function provideTestResolve(): iterable
{ yield 'parameter found and array' =>
[ Request::
create('/', 'GET',
['ids' =>
['1', '2'
]]),
new ArgumentMetadata('ids', 'array', false, false, false, attributes:
[new MapQueryParameter()]),
[['1', '2'
]],
null,
];
yield 'parameter found and array variadic' =>
[ Request::
create('/', 'GET',
['ids' =>
[['1', '2'
],
['2'
]]]),
new ArgumentMetadata('ids', 'array', true, false, false, attributes:
[new MapQueryParameter()]),
[['1', '2'
],
['2'
]],
null,
];
yield 'parameter found and array variadic with parameter not array failure' =>
[ Request::
create('/', 'GET',
['ids' =>
[['1', '2'
], 1
]]),