This commit is contained in:
2021-08-12 15:09:25 +08:00
parent 2ad860180e
commit 07312d25fe
+2 -2
View File
@@ -14,7 +14,7 @@ use Swoole\Server;
/**
*
*/
class ResponseEmitter
class ResponseEmitter implements Emitter
{
@@ -25,7 +25,7 @@ class ResponseEmitter
* @throws ReflectionException
* @throws Exception
*/
public function sender(\Swoole\Http\Response|\Swoole\Http2\Response $response, ResponseInterface $emitter): void
public function sender(mixed $response, ResponseInterface $emitter): void
{
$content = $emitter->configure($response)->getContent();
if ($content instanceof FileFormatter) {