[TASK] Replace array_push with normal array assignment
[Packages/TYPO3.CMS.git] / typo3 / sysext / extbase / Classes / Validation / ValidatorResolver.php
index 048e049..01ea46e 100644 (file)
@@ -561,11 +561,11 @@ class ValidatorResolver implements \TYPO3\CMS\Core\SingletonInterface
                 $parsedAnnotations = $this->parseValidatorAnnotation($validateValue);
 
                 foreach ($parsedAnnotations['validators'] as $validator) {
-                    array_push($validateAnnotations, [
+                    $validateAnnotations[] = [
                         'argumentName' => $parsedAnnotations['argumentName'],
                         'validatorName' => $validator['validatorName'],
                         'validatorOptions' => $validator['validatorOptions']
-                    ]);
+                    ];
                 }
             }
         }