From 8b0e5640b9b3e702ac0aee3b2fd6f8a713d1b2ca Mon Sep 17 00:00:00 2001 From: Robin Krahnen Date: Mon, 4 May 2020 21:57:03 +0200 Subject: [PATCH] replace use getter instead of directly accessing no longer protected variable --- Classes/Validation/Validator/SettingsValidator.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Classes/Validation/Validator/SettingsValidator.php b/Classes/Validation/Validator/SettingsValidator.php index 215e2c9..0f4b430 100644 --- a/Classes/Validation/Validator/SettingsValidator.php +++ b/Classes/Validation/Validator/SettingsValidator.php @@ -107,11 +107,11 @@ class SettingsValidator extends AbstractValidator } if (isset($validatorConfig['property'])) { - $this->result->forProperty($validatorConfig['property'])->merge( + $this->getResult()->forProperty($validatorConfig['property'])->merge( $validator->validate(ObjectAccess::getPropertyPath($value, $validatorConfig['property'])) ); } else { - $this->result->merge($validator->validate($value)); + $this->getResult()->merge($validator->validate($value)); } } }