Skip to content

[Form] broken behavior with integer named children since 6.3.6 #52248

Closed
@dmaicher

Description

@dmaicher

Symfony version(s) affected

6.3.6

Description

#52021 introduced an issue when form children are named like integers.

When handling the request values are re-indexed and loose their submitted index value.

How to reproduce

See reproducer with failing test case https://github.com/symfony/symfony/compare/5.4...dmaicher:symfony:reproducer_form_integer_children?expand=1

Where the first child named 0 will get the submitted value for the second child named 1 😕

Possible Solution

Revert change?

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions