Skip to content

Commit e6d2f8c

Browse files
Update InputValidator.php
1 parent e686272 commit e6d2f8c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Validator/InputValidator.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,14 +138,12 @@ private function buildValidationTree(ValidationNode $rootObject, iterable $field
138138

139139
foreach ($fields as $name => $arg) {
140140
$property = $arg['name'] ?? $name;
141+
$config = static::normalizeConfig($arg['validation'] ?? []);
141142

142143
if (!array_key_exists($property, $inputData)) {
143144
// This field was not provided in the inputData. Do not attempt to validate it.
144145
continue;
145146
}
146-
147-
148-
$config = static::normalizeConfig($arg['validation'] ?? []);
149147

150148
if (isset($config['cascade']) && isset($inputData[$property])) {
151149
$groups = $config['cascade'];

0 commit comments

Comments
 (0)