everything works fine on my validation. see my sample below:
return [
'description' => 'required',
];
<input type="text" name="description">
but wen i put this textbox in my form. see the code below:
<input type="text" name="load[1][load_country_portname]" />
the error came up.
htmlspecialchars() expects parameter 1 to be string
Please help.