8000 [Form][OptionsResolver] Fixed typos · symfony/symfony@00c4f7e · GitHub
[go: up one dir, main page]

Skip to content

Commit 00c4f7e

Browse files
committed
[Form][OptionsResolver] Fixed typos
1 parent 5357d5a commit 00c4f7e

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

UPGRADE-2.1.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,7 @@
643643
```
644644
public function buildForm(FormBuilderInterface $builder, array $options)
645645
public function buildView(FormViewInterface $view, FormInterface $form, array $options)
646-
public function buildViewBottomUp(FormViewInterface $view, FormInterface $form, array $options)
646+
public function finishView(FormViewInterface $view, FormInterface $form, array $options)
647647
```
648648
649649
* The following methods in `FormBuilder` were deprecated and have a new equivalent:

src/Symfony/Component/Form/Extension/Validator/Type/FormTypeValidatorExtension.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ public function setDefaultOptions(OptionsResolverInterface $resolver)
6262
$validationGroupsFilter = function (Options $options, $groups) {
6363
if (empty($groups)) {
6464
return null;
65-
} elseif (is_callable($groups)) {
65+
}
66+
67+
if (is_callable($groups)) {
6668
return $groups;
6769
}
6870

src/Symfony/Component/OptionsResolver/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ method:
8585
));
8686

8787
$resolver->setDefaults(array(
88-
// $previousValue contains the default value setDefaultOptionsd in the
88+
// $previousValue contains the default value configured in the
8989
// parent class
9090
'age' => function (Options $options, $previousValue) {
9191
return self::calculateAge($options['birthDate']);

0 commit comments

Comments
 (0)
0