response changes

This commit is contained in:
shimon
2022-07-26 15:50:33 +03:00
parent 966765dac7
commit d09bf306ce
5 changed files with 36 additions and 38 deletions
+4 -5
View File
@@ -457,10 +457,9 @@ class Response extends SwooleResponse
public function file(string $data, string $contentType): void
{
$this->payload = [
'content-type' => $contentType,
'payload' => $data
];
'content-type' => $contentType,
'payload' => $data
];
$this->send($data);
}
@@ -491,7 +490,7 @@ class Response extends SwooleResponse
/**
* @return array
*/
public function getPayload(): string | array
public function getPayload(): array
{
return $this->payload;
}