From 3dea259f524337c8c6112d71481ea57b1f0b53ac Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Mon, 8 Feb 2016 12:21:46 +0100 Subject: [PATCH] Return intval from getID() --- classes/Managed_DataObject.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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. -- 2.39.5