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