$data = [
'array_data_required' => [],
'array_data_size_one' => [],
];
$is_valid = GUMP::is_valid(
$data,
[
'array_data_required' => 'required',
'array_data_size_one' => 'valid_array_size_equal,1',
]
);
var_dump( $is_valid ); // bool(true)
In the above example I'd expect that the result is not valid for both fields since their value is empty. Am I'm missing something here?
Example:
In the above example I'd expect that the result is not valid for both fields since their value is empty. Am I'm missing something here?