diff --git a/composer.json b/composer.json index 7da2fd52..ef466631 100755 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "myparcelnl/sdk", - "version": "v1.2.2", + "version": "v1.2.3", "description": "This package is designed to send and receive data from MyParcel by means of an API.", "homepage": "https://www.myparcel.nl", "tags": ["MyParcel", "My Parcel", "Post NL", "PostNL"], diff --git a/src/Model/MyParcelCustomsItem.php b/src/Model/MyParcelCustomsItem.php index 65c0eb27..1ea3d8dc 100644 --- a/src/Model/MyParcelCustomsItem.php +++ b/src/Model/MyParcelCustomsItem.php @@ -72,7 +72,7 @@ public function getAmount() */ public function setAmount($amount) { - $this->amount = $amount; + $this->amount = (int)$amount; return $this; } @@ -99,7 +99,7 @@ public function setWeight($weight) throw new \Exception('Weight must be set for a MyParcel product'); } - $this->weight = $weight; + $this->weight = (int)$weight; return $this; }