Closed
Description
Q | A |
---|---|
Bug report? | yes |
Feature request? | no |
BC Break report? | no |
RFC? | no |
Symfony version | 2.8.33 |
Example problem:
->add('order', ChoiceType::class, [
'expanded' => true,
'choices' => [
'view' => 'news.search.order.view',
'name' => 'news.search.order.name',
'date' => 'news.search.order.date',
],
'empty_data' => 'date',
])
In this case, i get an error at this line:
Warning: date() expects parameter 1 to be string, object given