Merge "Don't cache replacement patterns in wfEscapeWikitext() during tests"
[lhc/web/wiklou.git] / includes / user / User.php
index df3b2ac..92a65f0 100644 (file)
@@ -321,7 +321,7 @@ class User implements IDBAccessObject {
         * @return string
         */
        public function __toString() {
-               return $this->getName();
+               return (string)$this->getName();
        }
 
        /**