From ee4c52de8fdb193e24817e6bc4a44ecba9eb40e5 Mon Sep 17 00:00:00 2001 From: Justin Hileman Date: Sun, 4 Mar 2012 21:32:22 -0800 Subject: [PATCH] Fix E_STRICT warning in i18n example. --- examples/i18n/I18n.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/i18n/I18n.php b/examples/i18n/I18n.php index 73cdd74..ea62c5d 100644 --- a/examples/i18n/I18n.php +++ b/examples/i18n/I18n.php @@ -14,7 +14,7 @@ class I18n { 'My name is {{ name }}.' => 'Me llamo {{ name }}.', ); - public function __trans($text) { + public static function __trans($text) { return isset(self::$dictionary[$text]) ? self::$dictionary[$text] : $text; } }