Skip to content

Commit

Permalink
v0.0.32
Browse files Browse the repository at this point in the history
- Fix `message` array key into `body`
  • Loading branch information
ewilan-riviere committed Oct 10, 2023
1 parent 0a04162 commit 857a7f7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "kiwilan/sentinel-laravel",
"description": "PHP package for Laravel to send errors to Sentinel.",
"version": "0.0.31",
"version": "0.0.32",
"keywords": [
"kiwilan",
"laravel",
Expand Down
8 changes: 4 additions & 4 deletions src/Sentinel.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,10 @@ private function send(): array
'json' => $body,
];

$this->status = $this->response['status'] ?: 0;
$this->body = $this->response['body'] ?: [];
$this->json = $this->response['json'] ?: '';
$this->message = $this->body['message'] ?: null;
$this->status = $this->response['status'];
$this->body = $this->response['body'] ?? [];
$this->json = $this->response['json'];
$this->message = $this->body['message'] ?? null;

if ($body === false) {
$this->pushError("Sentinel error {$this->status}: {$this->json}", $this->status);
Expand Down

0 comments on commit 857a7f7

Please sign in to comment.