context->getGroup(); $propertyPath = $this->context->getPropertyPath(); $violationList = $this->context->getViolations(); $violationCountPrevious = $violationList->count(); foreach ($constraint->constraints as $constr) { $this->context->validateValue($value, $constr, $propertyPath, $group); if ($constraint->stopOnError && (count($violationList) !== $violationCountPrevious)) { return; } } } }