Skip to content

Commit

Permalink
[Form] Deprecated ArrayKeyChoiceList
Browse files Browse the repository at this point in the history
  • Loading branch information
webmozart committed Nov 26, 2015
1 parent da43309 commit 5386752
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions UPGRADE-2.8.md
Expand Up @@ -251,6 +251,9 @@ Form
<tag name="form.type_extension" extended-type="Symfony\Component\Form\Extension\Core\Type\TextType" />
</service>
```

* The class `ArrayKeyChoiceList` was deprecated and will be removed in Symfony
3.0. Use `ArrayChoiceList` instead.

Translator
----------
Expand Down
3 changes: 3 additions & 0 deletions UPGRADE-3.0.md
Expand Up @@ -312,6 +312,9 @@ UPGRADE FROM 2.x to 3.0
* The `Symfony\Component\Form\Extension\Core\ChoiceList\SimpleChoiceList` class has been removed in
favor of `Symfony\Component\Form\ChoiceList\ArrayChoiceList`.

* The `Symfony\Component\Form\ChoiceList\ArrayKeyChoiceList` class has been removed in
favor of `Symfony\Component\Form\ChoiceList\ArrayChoiceList`.

### FrameworkBundle

* The `config:debug`, `container:debug`, `router:debug`, `translation:debug`
Expand Down
2 changes: 2 additions & 0 deletions src/Symfony/Component/Form/ChoiceList/ArrayKeyChoiceList.php
Expand Up @@ -11,6 +11,8 @@

namespace Symfony\Component\Form\ChoiceList;

@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);

use Symfony\Component\Form\Exception\InvalidArgumentException;

/**
Expand Down
Expand Up @@ -15,6 +15,8 @@

/**
* @author Bernhard Schussek <bschussek@gmail.com>
*
* @group legacy
*/
class ArrayKeyChoiceListTest extends AbstractChoiceListTest
{
Expand Down

0 comments on commit 5386752

Please sign in to comment.