diff --git a/composer.json b/composer.json index 771fe8a..6546b72 100644 --- a/composer.json +++ b/composer.json @@ -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", diff --git a/src/Sentinel.php b/src/Sentinel.php index 21eebb9..6d70ef2 100755 --- a/src/Sentinel.php +++ b/src/Sentinel.php @@ -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);