Skip to content

Commit 094e60b

Browse files
Update InputValidator.php
1 parent c4ef425 commit 094e60b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Validator/InputValidator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,15 +169,15 @@ private function buildValidationTree(ValidationNode $rootObject, iterable $field
169169
foreach ($config as $key => $value) {
170170
switch ($key) {
171171
case 'link':
172-
[$fqcn, $property, $type] = $value;
172+
[$fqcn, $classProperty, $type] = $value;
173173

174174
if (!in_array($fqcn, $this->cachedMetadata)) {
175175
/** @phpstan-ignore-next-line */
176176
$this->cachedMetadata[$fqcn] = $this->defaultValidator->getMetadataFor($fqcn);
177177
}
178178

179179
// Get metadata from the property and it's getters
180-
$propertyMetadata = $this->cachedMetadata[$fqcn]->getPropertyMetadata($property);
180+
$propertyMetadata = $this->cachedMetadata[$fqcn]->getPropertyMetadata($classProperty);
181181

182182
foreach ($propertyMetadata as $memberMetadata) {
183183
// Allow only constraints specified by the "link" matcher

0 commit comments

Comments
 (0)