8000 minor #47522 Remove `size` FormView variable (mpdude) · symfony/symfony@2a32835 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2a32835

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 ------- c6d455a Remove `size` FormView variable
2 parents 7193415 + c6d455a commit 2a32835

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/Symfony/Component/Form/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)
0