From 8c8b520348cd01bc1d676734842d16fd9830686e Mon Sep 17 00:00:00 2001 From: yggverse Date: Fri, 19 Jul 2024 10:51:35 +0300 Subject: [PATCH] fix return data type --- src/Model/Database.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Model/Database.php b/src/Model/Database.php index b923670d..d17afc52 100644 --- a/src/Model/Database.php +++ b/src/Model/Database.php @@ -88,7 +88,9 @@ class Database ] ); - return $this->_database->lastInsertId(); + return intval( + $this->_database->lastInsertId() + ); } public function findHistory( @@ -198,7 +200,9 @@ class Database ] ); - return $this->_database->lastInsertId(); + return intval( + $this->_database->lastInsertId() + ); } public function getSession(): ?object