From b76a772c4ebc2fae50348fa38c98d73e9fc2e765 Mon Sep 17 00:00:00 2001 From: Simon Hamp Date: Fri, 19 May 2023 20:17:11 +0100 Subject: [PATCH] Coerce into an int The method requires an int be returned --- src/App.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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', [