Factory functions are static
authorChad Horohoe <demon@users.mediawiki.org>
Sun, 28 Mar 2010 14:53:01 +0000 (14:53 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Sun, 28 Mar 2010 14:53:01 +0000 (14:53 +0000)
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 );
        }