Skip to content

Commit d16b5ea

Browse files
committed
fix: $this->processRules() may run twice
1 parent 82573aa commit d16b5ea

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

system/Validation/Validation.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,8 @@ public function run(?array $data = null, ?string $group = null, ?string $dbGroup
143143
if ($values === []) {
144144
// We'll process the values right away if an empty array
145145
$this->processRules($field, $setup['label'] ?? $field, $values, $rules, $data);
146+
147+
continue;
146148
}
147149

148150
if (strpos($field, '*') !== false && is_array($values)) {

0 commit comments

Comments
 (0)