Skip to content

Commit 75e5a08

Browse files
authored
Merge pull request #20018 from rob006/patch-1
Use `self` to access private method in `BaseFormatConverter`
2 parents e029988 + febbe0f commit 75e5a08

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

framework/helpers/BaseFormatConverter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public static function convertDateIcuToPhp($pattern, $type = 'date', $locale = n
103103
{
104104
if (isset(self::$_icuShortFormats[$pattern])) {
105105
if (extension_loaded('intl')) {
106-
$pattern = static::createFormatter($locale, $type, $pattern);
106+
$pattern = self::createFormatter($locale, $type, $pattern);
107107
} else {
108108
return static::$phpFallbackDatePatterns[$pattern][$type];
109109
}
@@ -347,7 +347,7 @@ public static function convertDateIcuToJui($pattern, $type = 'date', $locale = n
347347
{
348348
if (isset(self::$_icuShortFormats[$pattern])) {
349349
if (extension_loaded('intl')) {
350-
$pattern = static::createFormatter($locale, $type, $pattern);
350+
$pattern = self::createFormatter($locale, $type, $pattern);
351351
} else {
352352
return static::$juiFallbackDatePatterns[$pattern][$type];
353353
}

0 commit comments

Comments
 (0)