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 2340eb9

Browse filesBrowse 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
Copy full SHA for 2340eb9

File tree

1 file changed

+4
-0
lines changed
Filter options

1 file changed

+4
-0
lines changed

‎Extension/Core/Type/TimezoneType.php

Copy file name to clipboardExpand all lines: Extension/Core/Type/TimezoneType.php
+4Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.