Skip to content

Document variadic argument support for #[MapRequestPayload]#21970

Open
lacatoire wants to merge 1 commit intosymfony:8.1from
lacatoire:docs/map-request-payload-variadic
Open

Document variadic argument support for #[MapRequestPayload]#21970
lacatoire wants to merge 1 commit intosymfony:8.1from
lacatoire:docs/map-request-payload-variadic

Conversation

@lacatoire
Copy link
Contributor

This documents the support for variadic arguments with #[MapRequestPayload], introduced in Symfony 8.1 via symfony/symfony#54817.

Changes

Added a code example in controller.rst showing that you can use a variadic argument (UserDto ...$users) as an alternative to the existing array + type option approach for mapping arrays of DTOs from request payloads.

Fixes #21961

@carsonbot carsonbot added this to the 8.1 milestone Feb 12, 2026
@carsonbot carsonbot changed the title Document variadic argument support for #[MapRequestPayload] Document variadic argument support for #[MapRequestPayload] Feb 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants