Merge pull request #4348 from darinda/patch-4

Make VatIdRule accept empty strings as VAT id
This commit is contained in:
Glenn Hermans 2020-12-14 06:12:43 +01:00 committed by GitHub
commit d01c57dae7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ class VatIdRule implements Rule
{
$validator = new VatValidator();
return $validator->validate($value);
return empty($value) || $validator->validate($value);
}
/**