Skip to content

Commit

Permalink
fix: Fix Belgium algorithm - rule 2.
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Jun 15, 2021
1 parent 75b3ad9 commit 7b42ac4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CountryHandler/Belgium.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ private function isFollowBelgiumRule1AndIsDateValid(string $tin): bool

private function isFollowBelgiumRule2(string $tin): bool
{
$divisionRemainderBy97 = (2 + (int) mb_substr($tin, 0, 9)) % 97;
$divisionRemainderBy97 = (int) ('2' . mb_substr($tin, 0, 9)) % 97;

return 97 - $divisionRemainderBy97 === (int) (mb_substr($tin, 9, 3));
}
Expand Down

0 comments on commit 7b42ac4

Please sign in to comment.