File tree 1 file changed +2
-4
lines changed 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -297,26 +297,24 @@ Form
297
297
` ArrayAccess` in `ResizeFormListener::preSubmit` method has been removed.
298
298
299
299
* Using callable strings as choice options in ChoiceType is not supported
300
- anymore in favor of passing PropertyPath instances .
300
+ anymore in favor of passing \Callable .
301
301
302
302
Before :
303
303
304
304
` ` ` php
305
- 'choice_value' => new PropertyPath('range'),
306
305
'choice_label' => 'strtoupper',
307
306
` ` `
308
307
309
308
After :
310
309
311
310
` ` ` php
312
- 'choice_value' => 'range',
313
311
'choice_label' => function ($choice) {
314
312
return strtoupper($choice);
315
313
},
316
314
` ` `
317
315
318
316
* Caching of the loaded `ChoiceListInterface` in the `LazyChoiceList` has been removed,
319
- it must be cached in the `ChoiceLoaderInterface` implementation instead.
317
+ it must be cached in the `ChoiceLoaderInterface` implementation instead.
320
318
321
319
* Calling `isValid()` on a `Form` instance before submitting it is not supported
322
320
anymore and raises an exception.
You can’t perform that action at this time.
0 commit comments