Factory functions are static
[lhc/web/wiklou.git] / includes / Message.php
index 70738c3..3db82cd 100644 (file)
@@ -122,7 +122,7 @@ class Message {
         * @param $key String: message key
         * @return Message: $this
         */
-       public function key( $key ) {
+       public static function key( $key ) {
                return new Message( $key );
        }