Skip to content

Commit

Permalink
fix: support a maximum of 6 characters for the classification (#425)
Browse files Browse the repository at this point in the history
  • Loading branch information
RichardPerdaan authored Jul 14, 2022
1 parent 07885dd commit 4bea27b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Model/MyParcelCustomsItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ public function setClassification(?int $classification): self
throw new MissingFieldException('Classification must be set for a MyParcel product');
}

$this->classification = substr("$classification", 0, 5);
$this->classification = substr("$classification", 0, 6);

return $this;
}
Expand Down

0 comments on commit 4bea27b

Please sign in to comment.