Skip to content

Commit

Permalink
set type int on paginate
Browse files Browse the repository at this point in the history
  • Loading branch information
bhcosta90 committed Oct 3, 2024
1 parent cd76345 commit 9ac598d
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 9ac598d

Please sign in to comment.