From 9e8372009841f5379884fda38704b4670307523e Mon Sep 17 00:00:00 2001 From: Casey Heagerty Date: Thu, 21 Apr 2022 14:06:35 +0200 Subject: [PATCH] Remove incorrect LV 1st digit check --- src/Vies/Validator/ValidatorLV.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/Vies/Validator/ValidatorLV.php b/src/Vies/Validator/ValidatorLV.php index d8c5520..388d4eb 100644 --- a/src/Vies/Validator/ValidatorLV.php +++ b/src/Vies/Validator/ValidatorLV.php @@ -40,10 +40,6 @@ public function validate(string $vatNumber): bool return false; } - if ((int)$vatNumber[0] <= 3) { - return false; - } - $weights = [9, 1, 4, 8, 3, 10, 2, 5, 7, 6]; $checksum = (int)substr($vatNumber, -1); $checkVal = $this->sumWeights($weights, $vatNumber);