2 namespace TYPO3\CMS\Extbase\Validation\Validator;
41 $validatorResult = $validator->validate($value);
42 if ($validatorResult->hasErrors()) {
43 if ($result === null) {
44 $result = $validatorResult;
46 $result->merge($validatorResult);
49 if ($result === null) {
50 $result = $validatorResult;
58 $result = new \TYPO3\CMS\Extbase\Error\Result();