mirror of
https://github.com/symfony/form.git
synced 2026-03-24 00:02:23 +01:00
b758162fb45024f898640ec27f4ac90be0dbfb8f
OrderedHashMap auto-increment logic with mixed keys (yoeunes)
This PR was merged into the 6.4 branch. Discussion ---------- [Form] Fix `OrderedHashMap` auto-increment logic with mixed keys | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | - | License | MIT When `OrderedHashMap` has mixed integer and string keys, appending a new element overwrites existing integer keys instead of generating a new key: ```php $map = new OrderedHashMap(); $map[0] = 'zero'; $map[1] = 'one'; $map['foo'] = 'bar'; $map[] = 'new'; // overwrites key 1 instead of creating key 2 ``` Commits ------- 10f9f01898e [Form] Fix OrderedHashMap auto-increment logic with mixed keys
Form Component
The Form component allows you to easily create, process and reuse HTML forms.
Resources
Languages
PHP
100%