From 8fcdfc5fe3a86eb99475a3c1c8fc948a03d3393d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Fri, 10 Sep 2021 11:16:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- http-message/Response.php | 2 +- http-server/Constrict/ResponseInterface.php | 7 ------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/http-message/Response.php b/http-message/Response.php index 54e41897..dab20636 100644 --- a/http-message/Response.php +++ b/http-message/Response.php @@ -9,7 +9,7 @@ use Psr\Http\Message\ResponseInterface; use Server\SInterface\DownloadInterface; -class Response implements ResponseInterface +class Response implements ResponseInterface, \Server\Constrict\ResponseInterface { diff --git a/http-server/Constrict/ResponseInterface.php b/http-server/Constrict/ResponseInterface.php index 9c094f16..abd7ceee 100644 --- a/http-server/Constrict/ResponseInterface.php +++ b/http-server/Constrict/ResponseInterface.php @@ -21,13 +21,6 @@ interface ResponseInterface extends \Psr\Http\Message\ResponseInterface public function file(string $path): DownloadInterface; - /** - * @param $responseData - * @return string|array|bool|int|null - */ - public function _toArray($responseData): string|array|null|bool|int; - - /** * @param $data * @return ResponseInterface