很抱歉...

[0] InvalidArgumentException in Response.php line 312

variable type error: array

  1. {
  2. if (null == $this->content) {
  3. $content = $this->output($this->data);
  4. if (null !== $content && !is_string($content) && !is_numeric($content) && !is_callable([
  5. $content,
  6. '__toString',
  7. ])
  8. ) {
  9. throw new \InvalidArgumentException(sprintf('variable type error: %s', gettype($content)));
  10. }
  11. $this->content = (string) $content;
  12. }
  13. return $this->content;
  14. }
  15. /**
  16. * 获取状态码