Skip to content

Commit 75c661c

Browse files
authored
Merge pull request #759 from ktrzos/patch-1
Fixed a bug on validating fields when validation is cascade
2 parents 901f36c + be85cb5 commit 75c661c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Validator/InputValidator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ private function createObjectNode(array $value, $type, ValidationNode $parent):
210210
$propertiesMapping = [];
211211

212212
foreach ($type->getFields() as $fieldName => $inputField) {
213-
$propertiesMapping[$fieldName] = $inputField->config['validation'];
213+
$propertiesMapping[$fieldName] = $inputField->config['validation'] ?? [];
214214
}
215215

216216
return $this->buildValidationTree(

0 commit comments

Comments
 (0)