Skip to content

Commit b76a772

Browse files
committed
Coerce into an int
The method requires an int be returned
1 parent 035fae0 commit b76a772

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)