We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f64225 commit 179f26eCopy full SHA for 179f26e
form/use_empty_data.rst
@@ -94,7 +94,7 @@ The closure must accept a ``FormInterface`` instance as the first argument::
94
public function configureOptions(OptionsResolver $resolver): void
95
{
96
$resolver->setDefaults([
97
- 'empty_data' => function (FormInterface $form) {
+ 'empty_data' => function (FormInterface $form): Blog {
98
return new Blog($form->get('title')->getData());
99
},
100
]);
0 commit comments