Skip to content

Commit a568717

Browse files
committed
minor #47522 Remove size FormView variable (mpdude)
This PR was merged into the 6.2 branch. Discussion ---------- Remove `size` FormView variable | Q | A | ------------- | --- | Branch? | 6.2 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | | License | MIT | Doc PR | While [adding `FormView::$vars` support in the Psalm Plugin for Symfony](psalm/psalm-plugin-symfony#271), I came across the `size` key. I tried to figure out the meaning of the setting, but it is not documented, seems to be used nowhere, and has been around since the early days of the Form Component a decade ago. So, my assumption is that is has no meaning/relevance and thus my suggestion is to remove it. Commits ------- c6d455a610 Remove `size` FormView variable
2 parents 355dc34 + c140d52 commit a568717

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

Extension/Core/Type/FormType.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ public function buildView(FormView $view, FormInterface $form, array $options)
103103
'value' => $form->getViewData(),
104104
'data' => $form->getNormData(),
105105
'required' => $form->isRequired(),
106-
'size' => null,
107106
'label_attr' => $options['label_attr'],
108107
'help' => $options['help'],
109108
'help_attr' => $options['help_attr'],

0 commit comments

Comments
 (0)