Skip to content

Commit

Permalink
fixing empty_data option
Browse files Browse the repository at this point in the history
  • Loading branch information
oleg-andreyev committed Dec 5, 2020
1 parent 86e82c4 commit 3f9f4b4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/Form/AddressType.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ public function configureOptions(OptionsResolver $resolver)
$resolver->setDefaults(
[
'data_class' => Address::class,
'empty_data' => function () {
return new Address('');
}
]
);
}
Expand Down

0 comments on commit 3f9f4b4

Please sign in to comment.