Skip to content

Commit

Permalink
Merge pull request #5 from BramEsposito/patch-2
Browse files Browse the repository at this point in the history
do not truncate $vatNumber
  • Loading branch information
cba85 authored Jan 22, 2022
2 parents a82c1e8 + 6c50591 commit 51c8b03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Validation.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function convertVatIdToCountryCode() {
* @return mixed
*/
public function convertVatIdToVatNumber() {
$vatNumber = substr($this->vatId, 2, 11);
$vatNumber = substr($this->vatId, 2);
return $vatNumber;
}

Expand Down Expand Up @@ -190,4 +190,4 @@ public function getTraderAddress() {
return $response->traderAddress;
}

}
}

0 comments on commit 51c8b03

Please sign in to comment.