Skip to content

Commit

Permalink
fix: implement feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
joerivanveen committed Aug 13, 2024
1 parent b839a0f commit 2f9809d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Model/Consignment/AbstractConsignment.php
Original file line number Diff line number Diff line change
Expand Up @@ -1255,7 +1255,7 @@ public function getPerson(): string
*/
public function setPerson(string $person): self
{
$this->person = substr($person, -self::PERSON_NAME_MAX_LENGTH);
$this->person = Str::limit($person, self::PERSON_NAME_MAX_LENGTH);

return $this;
}
Expand All @@ -1279,7 +1279,7 @@ public function getCompany(): ?string
public function setCompany(?string $company): self
{
if (isset($company)) {
$company = substr($company, -self::COMPANY_NAME_MAX_LENGTH);
$company = Str::limit($company, self::COMPANY_NAME_MAX_LENGTH);
}

$this->company = $company;
Expand Down

0 comments on commit 2f9809d

Please sign in to comment.