type)); if ($this->length !== null && $this->length < 1) { throw new \InvalidArgumentException("Scheme 字段 length 必须 >= 1,当前={$this->length}"); } if ($type === 'char' && $this->length !== null && $this->length > 255) { throw new \InvalidArgumentException("Scheme 字段类型 char 的 length 超出范围,允许 1-255,当前={$this->length}"); } } }