8000 [Form] Deprecated ArrayKeyChoiceList · symfony/symfony@5386752 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5386752

Browse files
committed
[Form] Deprecated ArrayKeyChoiceList
1 parent da43309 commit 5386752

File tree

4 files changed

+10
-0
lines changed

4 files changed

+10
-0
lines changed

UPGRADE-2.8.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,9 @@ Form
251251
<tag name="form.type_extension" extended-type="Symfony\Component\Form\Extension\Core\Type\TextType" />
252252
</service>
253253
```
254+
255+
* The class `ArrayKeyChoiceList` was deprecated and will be removed in Symfony
256+
3.0. Use `ArrayChoiceList` instead.
254257

255258
Translator
256259
----------

UPGRADE-3.0.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,9 @@ UPGRADE FROM 2.x to 3.0
312312
* The `Symfony\Component\Form\Extension\Core\ChoiceList\SimpleChoiceList` class has been removed in
313313
favor of `Symfony\Component\Form\ChoiceList\ArrayChoiceList`.
314314

315+
* The `Symfony\Component\Form\ChoiceList\ArrayKeyChoiceList` class has been removed in
316+
favor of `Symfony\Component\Form\ChoiceList\ArrayChoiceList`.
317+
315318
### FrameworkBundle
316319

317320
* The `config:debug`, `container:debug`, `router:debug`, `translation:debug`

src/Symfony/Component/Form/ChoiceList/ArrayKeyChoiceList.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111

1212
namespace Symfony\Component\Form\ChoiceList;
1313

14+
@trigger_error('The '.__NAMESPACE__.'\ArrayKeyChoiceList class is deprecated since version 2.8 and will be removed in 3.0. Use '.__NAMESPACE__.'\ArrayChoiceList instead.', E_USER_DEPRECATED);
15+
1416
use Symfony\Component\Form\Exception\InvalidArgumentException;
1517

1618
/**

src/Symfony/Component/Form/Tests/ChoiceList/ArrayKeyChoiceListTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515

1616
/**
1717
* @author Bernhard Schussek <bschussek@gmail.com>
18+
*
19+
* @group legacy
1820
*/
1921
class ArrayKeyChoiceListTest extends AbstractChoiceListTest
2022
{

0 commit comments

Comments
 (0)
0