schemaContainer = $container; parent::__construct($factory, $container, $context); } /** * Show better error messages using instances of subclasses of \SimpleORMap * without a Schema. * * @inheritdoc */ public function parse($data, array $paths = []): iterable { \assert(\is_array($data) === true || \is_object($data) === true || $data === null); if ($data instanceof SimpleORMap && $this->schemaContainer->hasSchema($data) !== true) { throw new InvalidArgumentException(_(static::MSG_NO_SCHEMA_FOUND, \get_class($data))); } return parent::parse($data, $paths); } }