Skip to content

Commit

Permalink
FIX Fix PHP deprecation notice
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli committed Sep 7, 2023
1 parent 48ba37a commit e14c62a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Validators/FieldHasValueValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/**
Expand Down

0 comments on commit e14c62a

Please sign in to comment.