This commit is contained in:
2021-07-06 18:07:41 +08:00
parent eb6aaf3509
commit 51a2f448fd
+7 -7
View File
@@ -149,13 +149,13 @@ class Response extends HttpService
return !($this->response instanceof SResponse) && !($this->response instanceof S2Response); return !($this->response instanceof SResponse) && !($this->response instanceof S2Response);
} }
/** /**
* @param string $context * @param string|null $context
* @param int $statusCode * @param int $statusCode
* @return bool * @return bool
* @throws Exception * @throws Exception
*/ */
public function send(string $context = '', int $statusCode = 200): mixed public function send(?string $context = '', int $statusCode = 200): mixed
{ {
$sendData = $this->parseData($context); $sendData = $this->parseData($context);