Parcourir la source

Fix E_STRICT warning in i18n example.

Justin Hileman il y a 13 ans
Parent
commit
ee4c52de8f
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      examples/i18n/I18n.php

+ 1 - 1
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;
     }
 }