Skip to content

Commit

Permalink
Merge pull request #397 from bhcosta90/main
Browse files Browse the repository at this point in the history
Set type int on paginate
  • Loading branch information
arukompas authored Oct 4, 2024
2 parents cd76345 + 9ac598d commit 993492f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http/Controllers/LogsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function index(Request $request)

$logQuery->scan();
$logQuery->exceptLevels($excludedLevels);
$logs = $logQuery->paginate($perPage);
$logs = $logQuery->paginate((int) $perPage);
$levels = array_values($logQuery->getLevelCounts());

if ($logs->lastPage() < $request->input('page', 1)) {
Expand Down

0 comments on commit 993492f

Please sign in to comment.