Browse Source

Update FallbackMessageFormatter.php

Fix declarations for yii\i18n\FallbackMessageFormatter::format() and yii\i18n\FallbackMessageFormatter::formatMessage()
tags/2.0.0-beta
Алексей Волков 11 years ago
parent
commit
733263ba13
  1. 4
      framework/yii/i18n/FallbackMessageFormatter.php

4
framework/yii/i18n/FallbackMessageFormatter.php

@ -66,7 +66,7 @@ class FallbackMessageFormatter
* @param array $args Arguments to insert into the format string * @param array $args Arguments to insert into the format string
* @return string The formatted string, or `FALSE` if an error occurred * @return string The formatted string, or `FALSE` if an error occurred
*/ */
public function format(array $args) public function format($args)
{ {
return static::formatMessage($this->_locale, $this->_pattern, $args); return static::formatMessage($this->_locale, $this->_pattern, $args);
} }
@ -79,7 +79,7 @@ class FallbackMessageFormatter
* @param array $args The array of values to insert into the format string * @param array $args The array of values to insert into the format string
* @return string The formatted pattern string or `FALSE` if an error occurred * @return string The formatted pattern string or `FALSE` if an error occurred
*/ */
public static function formatMessage($locale, $pattern, array $args) public static function formatMessage($locale, $pattern, $args)
{ {
if (($tokens = static::tokenizePattern($pattern)) === false) { if (($tokens = static::tokenizePattern($pattern)) === false) {
return false; return false;

Loading…
Cancel
Save