Skip to content

Commit

Permalink
Merge pull request #3 from NativePHP/bug/get-badge-count
Browse files Browse the repository at this point in the history
Fix response from method
  • Loading branch information
mpociot authored May 25, 2023
2 parents 035fae0 + b76a772 commit 8247dab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/App.php
Original file line number Diff line number Diff line change
Expand Up @@ -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', [
Expand Down

0 comments on commit 8247dab

Please sign in to comment.