Skip to content

Commit

Permalink
fix issue laravel#47727 with wrong return type
Browse files Browse the repository at this point in the history
  • Loading branch information
renky committed Jul 24, 2023
1 parent c59d540 commit 7cb6b2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Http/Client/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7cb6b2e

Please sign in to comment.