use empty() instead of count()
This commit is contained in:
parent
2ca4e6e6ae
commit
8b9da3197e
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue