Skip to content

Commit e251e36

Browse files
committed
minor #18456 [Form] Remove unnecessary option assignment (sergeyfedotov)
This PR was merged into the 2.3 branch. Discussion ---------- [Form] Remove unnecessary option assignment | Q | A | ------------- | --- | Branch? | 2.3 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Option assignment is not required because the prototype inherits this option from the parent form via standard inheritance mechanism. Related pull requests: #16959, #18317 Commits ------- da8a197 Remove unnecessary option assignment
2 parents 192e821 + da8a197 commit e251e36

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/Symfony/Component/Form/Extension/Core/Type/CollectionType.php

-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ public function buildForm(FormBuilderInterface $builder, array $options)
2828
{
2929
if ($options['allow_add'] && $options['prototype']) {
3030
$prototype = $builder->create($options['prototype_name'], $options['type'], array_replace(array(
31-
'required' => $options['required'],
3231
'label' => $options['prototype_name'].'label__',
3332
), $options['options']));
3433
$builder->setAttribute('prototype', $prototype->getForm());

0 commit comments

Comments
 (0)