Skip to content

Commit

Permalink
Merge pull request #173 from myparcelnl/multicollo-multiple-consignments
Browse files Browse the repository at this point in the history
Multicollo multiple consignments
  • Loading branch information
RichardPerdaan authored Oct 29, 2019
2 parents 0c3360c + 05d907b commit 7ceeaae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 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": "v3.0.1",
"version": "v3.0.2",
"description": "This package is designed to send and receive data from MyParcel by means of an API.",
"homepage": "https://www.myparcel.nl",
"keywords": ["MyParcel", "My Parcel", "Flespakket", "Post NL", "PostNL"],
Expand Down
2 changes: 1 addition & 1 deletion src/Helper/MyParcelCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public function getConsignmentsByReferenceId($id): MyParcelCollection
}

if ($this->count() === 1) {
return $this;
return new static($this->items);
}

return $this->where('reference_identifier', $id);
Expand Down

0 comments on commit 7ceeaae

Please sign in to comment.