Skip to content

Commit

Permalink
Merge pull request #20018 from rob006/patch-1
Browse files Browse the repository at this point in the history
Use `self` to access private method in `BaseFormatConverter`
  • Loading branch information
bizley authored Oct 20, 2023
2 parents e029988 + febbe0f commit 75e5a08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions framework/helpers/BaseFormatConverter.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public static function convertDateIcuToPhp($pattern, $type = 'date', $locale = n
{
if (isset(self::$_icuShortFormats[$pattern])) {
if (extension_loaded('intl')) {
$pattern = static::createFormatter($locale, $type, $pattern);
$pattern = self::createFormatter($locale, $type, $pattern);
} else {
return static::$phpFallbackDatePatterns[$pattern][$type];
}
Expand Down Expand Up @@ -347,7 +347,7 @@ public static function convertDateIcuToJui($pattern, $type = 'date', $locale = n
{
if (isset(self::$_icuShortFormats[$pattern])) {
if (extension_loaded('intl')) {
$pattern = static::createFormatter($locale, $type, $pattern);
$pattern = self::createFormatter($locale, $type, $pattern);
} else {
return static::$juiFallbackDatePatterns[$pattern][$type];
}
Expand Down

0 comments on commit 75e5a08

Please sign in to comment.