Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Cast total results to int before returning
  • Loading branch information
craigpotter committed May 13, 2023
1 parent c2e4eee commit 91c05af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http/Paginators/Paginator.php
Expand Up @@ -338,7 +338,7 @@ public function totalResults(): int
throw new PaginatorException('Unable to calculate the total results from the response. Make sure the total key is correct.');
}

return $total;
return (int) $total;
}

/**
Expand Down

0 comments on commit 91c05af

Please sign in to comment.