diff --git a/Classes/Validation/Validator/SettingsValidator.php b/Classes/Validation/Validator/SettingsValidator.php index dec549f..563ffe9 100644 --- a/Classes/Validation/Validator/SettingsValidator.php +++ b/Classes/Validation/Validator/SettingsValidator.php @@ -169,7 +169,7 @@ class SettingsValidator extends AbstractValidator protected function doesValidationGroupsMatch(array &$validatorConfig) { if (isset($validatorConfig['options']['validationGroups']) - && count(array_intersect($validatorConfig['options']['validationGroups'], $this->options['validationGroups'])) === 0 + && empty(array_intersect($validatorConfig['options']['validationGroups'], $this->options['validationGroups'])) ) { return false; }