Procházet zdrojové kódy

Fix E_STRICT warning in i18n example.

Justin Hileman před 13 roky
rodič
revize
ee4c52de8f
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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;
     }
 }