From 819bda587f3f7759a5981a1066474b687e678aed Mon Sep 17 00:00:00 2001 From: Thomas Zilio Date: Fri, 16 Nov 2018 19:50:02 +0100 Subject: [PATCH] Fix codice fiscale vuoto --- src/Validate.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Validate.php b/src/Validate.php index 8c14c72e2..ad07b8a11 100644 --- a/src/Validate.php +++ b/src/Validate.php @@ -143,6 +143,9 @@ class Validate public static function isValidTaxCode($codice_fiscale) { + if (empty($codice_fiscale)) { + return true; + } $validator = new CodiceFiscale\Validator($codice_fiscale);