Skip to content

Commit

Permalink
CY tax number can start with 6
Browse files Browse the repository at this point in the history
  • Loading branch information
nastia-vinnytska authored and DragonBe committed Jul 5, 2024
1 parent 7d0cc08 commit 905297a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Vies/Validator/ValidatorCY.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* Range:
* C1 ... C8 Numeric from 0 to 9
* C9 Alphabetic
* C1 0, 1, 3, 4, 5, 9
* C1 0, 1, 3, 4, 5, 6, 9
*
* Rules:
* C1 C2
Expand All @@ -41,7 +41,7 @@ public function validate(string $vatNumber): bool
return false;
}

return in_array((int) $vatNumber[0], [0, 1, 3, 4, 5, 9], true)
return in_array((int) $vatNumber[0], [0, 1, 3, 4, 5, 6, 9], true)
&& ctype_alpha($vatNumber[8]);
}
}

0 comments on commit 905297a

Please sign in to comment.