From 8b9da3197ee58f1c3571bcc8c3c3290fbeba0f31 Mon Sep 17 00:00:00 2001 From: Robin Krahnen Date: Wed, 30 May 2018 17:15:06 +0200 Subject: [PATCH] use empty() instead of count() --- Classes/Validation/Validator/SettingsValidator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }