Skip to content

Commit

Permalink
Merge pull request #28 from myparcelnl/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
Reindert authored Oct 24, 2017
2 parents 5466783 + b4f22a7 commit 69e3065
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -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"],
Expand Down
4 changes: 2 additions & 2 deletions src/Model/MyParcelCustomsItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function getAmount()
*/
public function setAmount($amount)
{
$this->amount = $amount;
$this->amount = (int)$amount;

return $this;
}
Expand All @@ -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;
}
Expand Down

0 comments on commit 69e3065

Please sign in to comment.