$this->type]; if ($this->description !== null) { $array['description'] = $this->description; } return $array; } /** * Validate a value against this type definition. */ public function validate(mixed $value, string $path = ''): void { if ($value !== null) { throw RecordValidationException::invalidType($path, 'null', gettype($value)); } } }