diff --git a/composer.json b/composer.json index ffa5bdf4..270cbf2a 100755 --- a/composer.json +++ b/composer.json @@ -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"], diff --git a/src/Helper/MyParcelCollection.php b/src/Helper/MyParcelCollection.php index f5419ee3..3a0767e5 100644 --- a/src/Helper/MyParcelCollection.php +++ b/src/Helper/MyParcelCollection.php @@ -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);