mirror of
				https://github.com/yiisoft/yii2.git
				synced 2025-10-31 10:39:59 +08:00 
			
		
		
		
	Merge pull request #20018 from rob006/patch-1
Use `self` to access private method in `BaseFormatConverter`
This commit is contained in:
		| @ -103,7 +103,7 @@ class BaseFormatConverter | ||||
|     { | ||||
|         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 @@ class BaseFormatConverter | ||||
|     { | ||||
|         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]; | ||||
|             } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Bizley
					Bizley