We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc77b25 commit af464b6Copy full SHA for af464b6
src/Kris/LaravelFormBuilder/Fields/FormField.php
@@ -379,12 +379,7 @@ protected function normalizeRules($rules)
379
}
380
381
if (is_array($rules)) {
382
- $normalizedRules = [];
383
- foreach ($rules as $rule) {
384
- $normalizedRules[] = $this->normalizeRules($rule);
385
- }
386
-
387
- return array_values(array_unique(Arr::flatten($normalizedRules), SORT_REGULAR));
+ return array_values(array_unique(Arr::flatten($rules), SORT_REGULAR));
388
389
390
return $rules;
0 commit comments