replace use getter instead of directly accessing no longer protected variable

This commit is contained in:
Robin Krahnen 2020-05-04 21:57:03 +02:00
parent d30ed3310a
commit 8b0e5640b9

View file

@ -107,11 +107,11 @@ class SettingsValidator extends AbstractValidator
} }
if (isset($validatorConfig['property'])) { if (isset($validatorConfig['property'])) {
$this->result->forProperty($validatorConfig['property'])->merge( $this->getResult()->forProperty($validatorConfig['property'])->merge(
$validator->validate(ObjectAccess::getPropertyPath($value, $validatorConfig['property'])) $validator->validate(ObjectAccess::getPropertyPath($value, $validatorConfig['property']))
); );
} else { } else {
$this->result->merge($validator->validate($value)); $this->getResult()->merge($validator->validate($value));
} }
} }
} }