Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #214 from craigpotter/fix/cast-totalResults-to-int
Cast total results to int before returning
  • Loading branch information
Sammyjo20 committed May 14, 2023
2 parents c2e4eee + 91c05af commit 8d53814
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 8d53814

Please sign in to comment.