From 7cb6b2eedfa849fb3ddf5db6dfe8cef1bb3fc284 Mon Sep 17 00:00:00 2001 From: Dominik Date: Mon, 24 Jul 2023 10:45:31 +0200 Subject: [PATCH] fix issue #47727 with wrong return type --- src/Illuminate/Http/Client/Request.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;