Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5386752

Browse filesBrowse files
committed
[Form] Deprecated ArrayKeyChoiceList
1 parent da43309 commit 5386752
Copy full SHA for 5386752

File tree

Expand file treeCollapse file tree

4 files changed

+10
-0
lines changed
Filter options
Expand file treeCollapse file tree

4 files changed

+10
-0
lines changed

‎UPGRADE-2.8.md

Copy file name to clipboardExpand all lines: UPGRADE-2.8.md
+3Lines 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

Copy file name to clipboardExpand all lines: UPGRADE-3.0.md
+3Lines 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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Form/ChoiceList/ArrayKeyChoiceList.php
+2Lines 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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Form/Tests/ChoiceList/ArrayKeyChoiceListTest.php
+2Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.