8000 minor #21875 Rename TimeZoneTransformer into TimezoneTransformer (lep… · symfony/symfony@dc0eba7 · GitHub
[go: up one dir, main page]

Skip to content

Commit dc0eba7

Browse files
committed
minor #21875 Rename TimeZoneTransformer into TimezoneTransformer (lepiaf)
This PR was submitted for the 3.2 branch but it was merged into the 3.3-dev branch instead (closes #21875). Discussion ---------- Rename TimeZoneTransformer into TimezoneTransformer | Q | A | ------------- | --- | Branch? | 3.2 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #11028 | License | MIT | Doc PR | no # Commits ------- dba1639 Rename TimeZoneTransformer into TimezoneTransformer
2 parents 27dbfda + dba1639 commit dc0eba7

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Symfony/Component/Intl/DateFormatter/DateFormat/FullTransformer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public function __construct($pattern, $timezone)
6767
'k' => new Hour2401Transformer(),
6868
'm' => new MinuteTransformer(),
6969
's' => new SecondTransformer(),
70-
'z' => new TimeZoneTransformer(),
70+
'z' => new TimezoneTransformer(),
7171
);
7272
}
7373

src/Symfony/Component/Intl/DateFormatter/DateFormat/TimeZoneTransformer.php renamed to src/Symfony/Component/Intl/DateFormatter/DateFormat/TimezoneTransformer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
*
2121
* @internal
2222
*/
23-
class TimeZoneTransformer extends Transformer
23+
class TimezoneTransformer extends Transformer
2424
{
2525
/**
2626
* {@inheritdoc}

src/Symfony/Component/Intl/DateFormatter/IntlDateFormatter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ public function setTimeZoneId($timeZoneId)
541541
// Get an Etc/GMT time zone that is accepted for \DateTimeZone
542542
if ('GMT' !== $timeZoneId && 0 === strpos($timeZoneId, 'GMT')) {
543543
try {
544-
$timeZoneId = DateFormat\TimeZoneTransformer::getEtcTimeZoneId($timeZoneId);
544+
$timeZoneId = DateFormat\TimezoneTransformer::getEtcTimeZoneId($timeZoneId);
545545
} catch (\InvalidArgumentException $e) {
546546
// Does nothing, will fallback to UTC
547547
}

0 commit comments

Comments
 (0)
0