10000 feature #16687 [Form] Deprecated TimezoneType::getTimezones() (webmoz… · symfony/form@2340eb9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2340eb9

Browse files
committed
feature #16687 [Form] Deprecated TimezoneType::getTimezones() (webmozart)
This PR was merged into the 2.8 branch. Discussion ---------- [Form] Deprecated TimezoneType::getTimezones() | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | yes | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - This method is useless as of symfony/symfony#16681. It needs to be deprecated before we can remove it since it is public. Commits ------- 41df3fc [Form] Deprecated TimezoneType::getTimezones()
2 parents 3868b4b + 944f87f commit 2340eb9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Extension/Core/Type/TimezoneType.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,13 @@ public function getBlockPrefix()
7575
* overhead.
7676
*
7777
* @return array The timezone choices
78+
*
79+
* @deprecated Deprecated since version 2.8
7880
*/
7981
public static function getTimezones()
8082
{
83+
@trigger_error('The TimezoneType::getTimezones() method is deprecated since version 2.8 and will be removed in 3.0.', E_USER_DEPRECATED);
84+
8185
if (null === static::$timezones) {
8286
static::$timezones = array();
8387

0 commit comments

Comments
 (0)
0