Skip to content

Commit 8247dab

Browse files
authored
Merge pull request #3 from NativePHP/bug/get-badge-count
Fix response from method
2 parents 035fae0 + b76a772 commit 8247dab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/App.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function version(): string
3333
public function badgeCount($count = null): int
3434
{
3535
if ($count === null) {
36-
return $this->client->get('app/badge-count')->json('count');
36+
return (int) $this->client->get('app/badge-count')->json('count');
3737
}
3838

3939
$this->client->post('app/badge-count', [

0 commit comments

Comments
 (0)