diff --git a/Classes/Validation/Validator/SettingsValidator.php b/Classes/Validation/Validator/SettingsValidator.php index 0cdd08c..8b825d8 100644 --- a/Classes/Validation/Validator/SettingsValidator.php +++ b/Classes/Validation/Validator/SettingsValidator.php @@ -142,13 +142,11 @@ class SettingsValidator extends AbstractValidator */ protected function doesValidationGroupsMatch(array $validatorConfig): bool { - return - !isset($validatorConfig['options']['validationGroups']) + return !isset($validatorConfig['options']['validationGroups']) || \array_intersect( $validatorConfig['options']['validationGroups'], $this->options['validationGroups'] - ) !== [] - ; + ) !== []; } /**