From 5990a08cecce47212907dcb7fb6d14b01da29c97 Mon Sep 17 00:00:00 2001 From: Jeferson Almeida Date: Thu, 21 Sep 2023 11:47:36 -0300 Subject: [PATCH 1/3] Added the ability to configure which validators are of type "required" (means that this validator will run, even if the field is not set on the input). --- gump.class.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gump.class.php b/gump.class.php index 8d9762b9..09c22ea0 100644 --- a/gump.class.php +++ b/gump.class.php @@ -86,6 +86,8 @@ public static function get_instance() */ public static $field_chars_to_spaces = ['_', '-']; + public static $require_type_of_rules = ['required', 'required_file']; + // ** ------------------------- Validation Data ------------------------------- ** // public static $basic_tags = '