diff --git a/src/App.php b/src/App.php index 8a8ee69..15fba4e 100644 --- a/src/App.php +++ b/src/App.php @@ -33,7 +33,7 @@ public function version(): string public function badgeCount($count = null): int { if ($count === null) { - return $this->client->get('app/badge-count')->json('count'); + return (int) $this->client->get('app/badge-count')->json('count'); } $this->client->post('app/badge-count', [