Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions UPGRADE-2.8.md
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,9 @@ Form
<tag name="form.type_extension" extended-type="Symfony\Component\Form\Extension\Core\Type\TextType" />
</service>
```

* The `TimezoneType::getTimezones()` method was deprecated and will be removed
in Symfony 3.0. You should not use this method.

Translator
----------
Expand Down
3 changes: 3 additions & 0 deletions UPGRADE-3.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,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 `TimezoneType::getTimezones()` method was removed. You should not use
this method.

### FrameworkBundle

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,13 @@ public function getBlockPrefix()
* overhead.
*
* @return array The timezone choices
*
* @deprecated Deprecated since version 2.8
*/
public static function getTimezones()
{
@trigger_error('The TimezoneType::getTimezones() method is deprecated since version 2.8 and will be removed in 3.0.', E_USER_DEPRECATED);

if (null === static::$timezones) {
static::$timezones = array();

Expand Down