Closed
Description
Symfony version(s) affected
6.3.0
Description
Hi
I am creating issue based on discussion: #50661
How to reproduce
example below should thrown exception in case of variadic argument (inside RequestPayloadValueResolver)
payload
[
{"number": 1},
{"number": 2}
]
final class ObjectDto
{
public function __construct(
public readonly int $number
)
{
}
}
controller
__invoke(#[MapRequestPayload] ...ObjectDto $objects)
Possible Solution
No response
Additional Context
No response