The options need to be resetted here. Otherwise we end up with additional parameters when calling the validators.
// This will fail because the date rule gets called with two parameters
// ['2021-05-20', 'date'] instead of just the expected ['2021-05-20']
new Form([
'start_date' => [
'rules' => ['required' ,'date']
]
]);
The options need to be resetted here. Otherwise we end up with additional parameters when calling the validators.