diff --git a/src/Illuminate/Http/Client/Request.php b/src/Illuminate/Http/Client/Request.php index 3c2d6a9bdb19..b0e263700ede 100644 --- a/src/Illuminate/Http/Client/Request.php +++ b/src/Illuminate/Http/Client/Request.php @@ -193,7 +193,7 @@ protected function parameters() protected function json() { if (! $this->data) { - $this->data = json_decode($this->body(), true); + $this->data = json_decode($this->body(), true) ?? []; } return $this->data;