Skip to content

Commit

Permalink
bug fix address HouseNb
Browse files Browse the repository at this point in the history
  • Loading branch information
adoultremont committed Mar 23, 2023
1 parent 883035a commit fe0edbd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/models/Address.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,9 @@ public function setAddress($street, $number, $addition = null)
$secondPart = substr($number, $firstLetterPos);
$secondPart = $addition === null ? $secondPart : $secondPart . " " . $addition;
} else {
$firstPart = $street;
$firstPart = $number;
$secondPart = $addition;
}

$this->houseNumber = $firstPart;
$this->houseNumberAddition = $secondPart;
return $this;
Expand Down

0 comments on commit fe0edbd

Please sign in to comment.