getTypedData(); } if (!$data instanceof ComplexDataInterface) { throw new UnexpectedTypeException($data, 'ComplexData'); } foreach ($constraint->properties as $name => $constraints) { $this->context->getValidator() ->inContext($this->context) // Specifically pass along FALSE as $root_call, as we validate the data // as part of the typed data tree. ->validate($data->get($name), $constraints, NULL, FALSE); } } }