From 4cedd1a31426f13e4020cbddd9d1b4556be71e1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=93=AD=E6=98=95?= Date: Fri, 13 Nov 2020 15:09:11 +0800 Subject: [PATCH] Fixed response body does not exists when bad request. (#2803) * Fixed response body does not exists when bad request. * Update JsonParser.php * Update CHANGELOG-2.0.md --- src/Server/Request/JsonParser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Server/Request/JsonParser.php b/src/Server/Request/JsonParser.php index 54c7fa8..e8c3775 100644 --- a/src/Server/Request/JsonParser.php +++ b/src/Server/Request/JsonParser.php @@ -14,7 +14,7 @@ use Hyperf\HttpMessage\Exception\BadRequestHttpException; use Hyperf\HttpMessage\Server\RequestParserInterface; use Hyperf\Utils\Codec\Json; -use Hyperf\Utils\Exception\InvalidArgumentException; +use InvalidArgumentException; class JsonParser implements RequestParserInterface {