Skip to content

Commit

Permalink
Update BlingResponse.php
Browse files Browse the repository at this point in the history
  • Loading branch information
pablosanches authored Jun 25, 2024
1 parent 5486c93 commit 9fc1fd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http/BlingResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function getData(): array
public function getError(): array
{
$content = $this->getContent();
return array_key_exists('error', $content) ? $content : [];
return array_key_exists('error', $content) ? $content['error'] : [];
}

public function getStatusCode(): int
Expand Down

0 comments on commit 9fc1fd1

Please sign in to comment.