[Form][OptionsResolver] Fixed typos
This commit is contained in:
parent
877d8f7195
commit
8e128fc644
@ -643,7 +643,7 @@
|
||||
```
|
||||
public function buildForm(FormBuilderInterface $builder, array $options)
|
||||
public function buildView(FormViewInterface $view, FormInterface $form, array $options)
|
||||
public function buildViewBottomUp(FormViewInterface $view, FormInterface $form, array $options)
|
||||
public function finishView(FormViewInterface $view, FormInterface $form, array $options)
|
||||
```
|
||||
|
||||
* The following methods in `FormBuilder` were deprecated and have a new equivalent:
|
||||
|
@ -62,7 +62,9 @@ class FormTypeValidatorExtension extends AbstractTypeExtension
|
||||
$validationGroupsFilter = function (Options $options, $groups) {
|
||||
if (empty($groups)) {
|
||||
return null;
|
||||
} elseif (is_callable($groups)) {
|
||||
}
|
||||
|
||||
if (is_callable($groups)) {
|
||||
return $groups;
|
||||
}
|
||||
|
||||
|
@ -85,7 +85,7 @@ method:
|
||||
));
|
||||
|
||||
$resolver->setDefaults(array(
|
||||
// $previousValue contains the default value setDefaultOptionsd in the
|
||||
// $previousValue contains the default value configured in the
|
||||
// parent class
|
||||
'age' => function (Options $options, $previousValue) {
|
||||
return self::calculateAge($options['birthDate']);
|
||||
|
Reference in New Issue
Block a user