From b462e66e330df6507fb4289646e28773ffec3748 Mon Sep 17 00:00:00 2001 From: denisdulici Date: Mon, 24 Feb 2020 00:56:02 +0300 Subject: [PATCH] force ids to be int --- app/Traits/Import.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/Traits/Import.php b/app/Traits/Import.php index 217ef460f..6da5a7a80 100644 --- a/app/Traits/Import.php +++ b/app/Traits/Import.php @@ -28,7 +28,7 @@ trait Import $id = $this->getAccountIdFromCurrency($row); } - return $id; + return (int) $id; } public function getCategoryId($row, $type = null) @@ -41,7 +41,7 @@ trait Import $id = $this->getCategoryIdFromName($row, $type); } - return $id; + return (int) $id; } public function getContactId($row, $type = null) @@ -58,7 +58,7 @@ trait Import $id = $this->getContactIdFromName($row, $type); } - return $id; + return (int) $id; } public function getDocumentId($row) @@ -81,7 +81,7 @@ trait Import } } - return $id; + return (int) $id; } public function getItemId($row) @@ -92,7 +92,7 @@ trait Import $id = $this->getItemIdFromName($row); } - return $id; + return (int) $id; } public function getTaxId($row) @@ -107,7 +107,7 @@ trait Import $id = $this->getTaxIdFromRate($row); } - return $id; + return (int) $id; } public function getAccountIdFromCurrency($row)