Skip to content

Commit 05f989a

Browse files
Merge pull request #615 from jelaucv/patch-1
Fix Regex/Array Rules normalisation
2 parents bc77b25 + af464b6 commit 05f989a

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/Kris/LaravelFormBuilder/Fields/FormField.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -379,12 +379,7 @@ protected function normalizeRules($rules)
379379
}
380380

381381
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));
382+
return array_values(array_unique(Arr::flatten($rules), SORT_REGULAR));
388383
}
389384

390385
return $rules;

0 commit comments

Comments
 (0)