Skip to content

Commit

Permalink
fix issue #47727 with wrong return type (#47820)
Browse files Browse the repository at this point in the history
Co-authored-by: Dominik <[email protected]>
  • Loading branch information
renky and renky authored Jul 24, 2023
1 parent 64cf2bb commit fa1fc94
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 fa1fc94

Please sign in to comment.