From 733263ba132bad78df1afc615ad1ef44b11f4fa8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B5=D0=B9=20=D0=92=D0=BE?= =?UTF-8?q?=D0=BB=D0=BA=D0=BE=D0=B2?= Date: Sun, 27 Oct 2013 21:54:48 +0200 Subject: [PATCH] Update FallbackMessageFormatter.php Fix declarations for yii\i18n\FallbackMessageFormatter::format() and yii\i18n\FallbackMessageFormatter::formatMessage() --- framework/yii/i18n/FallbackMessageFormatter.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/yii/i18n/FallbackMessageFormatter.php b/framework/yii/i18n/FallbackMessageFormatter.php index 16d38f5..17928f5 100644 --- a/framework/yii/i18n/FallbackMessageFormatter.php +++ b/framework/yii/i18n/FallbackMessageFormatter.php @@ -66,7 +66,7 @@ class FallbackMessageFormatter * @param array $args Arguments to insert into the format string * @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); } @@ -79,7 +79,7 @@ class FallbackMessageFormatter * @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 */ - public static function formatMessage($locale, $pattern, array $args) + public static function formatMessage($locale, $pattern, $args) { if (($tokens = static::tokenizePattern($pattern)) === false) { return false;