We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 20e5a28 + 9a5ce0a commit c8e10baCopy full SHA for c8e10ba
src/Form.php
@@ -276,6 +276,7 @@ public function validate(array $dataSource, array $validationSet)
276
foreach ($validationSet as $itemToValidate => $userRules) {
277
if (empty($userRules)) {
278
$output[$itemToValidate] = Anchor::deepGetDot($dataSource, $itemToValidate);
279
+
280
continue;
281
}
282
@@ -286,7 +287,7 @@ public function validate(array $dataSource, array $validationSet)
286
287
288
if (!$this->test($userRules, $value, $itemToValidate)) {
289
$output = false;
- } else if ($output !== false && !$endsWithWildcard) {
290
+ } elseif ($output !== false && !$endsWithWildcard) {
291
if (
292
(is_array($userRules) && in_array('optional', $userRules))
293
|| (is_string($userRules) && strpos($userRules, 'optional') !== false)
0 commit comments