Skip to content

Commit 30814a5

Browse files
SimperfitAmrouche Hamza
authored and
Amrouche Hamza
committed
minor: ChoiceType callable deprecation after/before seems wrong
That is on me 3 years ago !
1 parent a288a74 commit 30814a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

UPGRADE-4.0.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,14 +302,14 @@ Form
302302
Before:
303303

304304
```php
305-
'choice_value' => new PropertyPath('range'),
305+
'choice_value' => 'range',
306306
'choice_label' => 'strtoupper',
307307
```
308308

309309
After:
310310

311311
```php
312-
'choice_value' => 'range',
312+
'choice_value' => new PropertyPath('range'),
313313
'choice_label' => function ($choice) {
314314
return strtoupper($choice);
315315
},

0 commit comments

Comments
 (0)