From: Mikael Nordfeldth Date: Mon, 8 Feb 2016 11:21:46 +0000 (+0100) Subject: Return intval from getID() X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3dea259f524337c8c6112d71481ea57b1f0b53ac;p=quix0rs-gnu-social.git Return intval from getID() --- diff --git a/classes/Managed_DataObject.php b/classes/Managed_DataObject.php index c02685e55e..28e7e1b658 100644 --- a/classes/Managed_DataObject.php +++ b/classes/Managed_DataObject.php @@ -409,8 +409,7 @@ abstract class Managed_DataObject extends Memcached_DataObject throw new Exception('Empty ID for object! (not inserted yet?).'); } - // FIXME: How about forcing to return an int? Or will that overflow eventually? - return $this->id; + return intval($this->id); } // 'update' won't write key columns, so we have to do it ourselves.