From e14c62a065878b7edb64c4bf70b3485a2a0dd024 Mon Sep 17 00:00:00 2001 From: Guy Sartorelli Date: Thu, 7 Sep 2023 14:32:39 +1200 Subject: [PATCH] FIX Fix PHP deprecation notice --- src/Validators/FieldHasValueValidator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Validators/FieldHasValueValidator.php b/src/Validators/FieldHasValueValidator.php index 85cc2bf..d22d158 100644 --- a/src/Validators/FieldHasValueValidator.php +++ b/src/Validators/FieldHasValueValidator.php @@ -48,7 +48,7 @@ protected function fieldHasValue(array $data, FormField $formField): bool } // assume a string or integer - return (strlen($value)) ? true : false; + return (strlen($value ?? '')) ? true : false; } /**