From febbe0f20e7af5e0fa4caa479526574af806cfa3 Mon Sep 17 00:00:00 2001 From: Robert Korulczyk Date: Thu, 19 Oct 2023 21:33:43 +0200 Subject: [PATCH] Use `self` to access private method in BaseFormatConverter --- framework/helpers/BaseFormatConverter.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/helpers/BaseFormatConverter.php b/framework/helpers/BaseFormatConverter.php index 00f37395ec7..3cea9c95017 100644 --- a/framework/helpers/BaseFormatConverter.php +++ b/framework/helpers/BaseFormatConverter.php @@ -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]; } @@ -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]; }