Open naquad opened 5 years ago
The reason for this is 'domains' => 'required|array'
.
The reason why your ssl
key is present, is because the domains
array which holds it has been validated, all of its nested arrays have technically passed this rule.
This is a difficult one, because in this situation you would not expect to see ssl
in the validated data, but consider if you were only running the 'domains' => 'required|array'
rule; what would you expect back then?
I imagine it would be the populated domains
array, and not an empty version - 'domains' => []
.
This probably needs more discussion, but I consider it a quirk, and not a bug.
Hi
I have this rule set:
And this query:
Mind the "ssl" key. It was not described in rules.
Still, I get it from
getValidatedData()
call:Version is 1.1.1, PHP 7.3.3.
P. S. Same happens with getValidData().