uri = $uri; } protected function doValidate(ValidationContext $context, Schema $schema): ?ValidationError { if ($this->resolved === false) { $this->resolved = $context->loader()->loadSchemaById($this->uri); } if ($this->resolved === null) { throw new UnresolvedReferenceException((string)$this->uri, $schema, $context); } $this->setLastRefSchema($this->resolved); return $this->resolved->validate($this->createContext($context, $schema)); } }