[TASK] Cleanup parameter mismatches
[Packages/TYPO3.CMS.git] / typo3 / sysext / extbase / Classes / Validation / Validator / CollectionValidator.php
index 45705b9..b8ec1d8 100644 (file)
@@ -87,11 +87,7 @@ class CollectionValidator extends GenericObjectValidator
             if (isset($this->options['elementValidator'])) {
                 $collectionElementValidator = $this->validatorResolver->createValidator($this->options['elementValidator']);
             } elseif (isset($this->options['elementType'])) {
-                if (isset($this->options['validationGroups'])) {
-                    $collectionElementValidator = $this->validatorResolver->getBaseValidatorConjunction($this->options['elementType'], $this->options['validationGroups']);
-                } else {
-                    $collectionElementValidator = $this->validatorResolver->getBaseValidatorConjunction($this->options['elementType']);
-                }
+                $collectionElementValidator = $this->validatorResolver->getBaseValidatorConjunction($this->options['elementType']);
             } else {
                 return;
             }