From: Gergő Tisza Date: Tue, 18 Oct 2016 23:50:47 +0000 (+0000) Subject: Force User::__toString() return value to be string X-Git-Tag: 1.31.0-rc.0~5077^2 X-Git-Url: http://git.cyclocoop.org/?a=commitdiff_plain;h=c21f49aec738fcdc4bc6d5779accd8f2f53c49fe;p=lhc%2Fweb%2Fwiklou.git Force User::__toString() return value to be string Bug: T148486 Change-Id: I19f483b16c99d05f4d1626ee89ba1cfb7a78d52b --- diff --git a/includes/user/User.php b/includes/user/User.php index df3b2ac163..92a65f074c 100644 --- a/includes/user/User.php +++ b/includes/user/User.php @@ -321,7 +321,7 @@ class User implements IDBAccessObject { * @return string */ public function __toString() { - return $this->getName(); + return (string)$this->getName(); } /**