File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -453,13 +453,15 @@ protected function sanitizePageNumber(int $number) : int
453
453
/**
454
454
* A basic function to paginate all rows of the table.
455
455
*
456
- * @param int $page The current page
457
- * @param int $perPage Items per page
456
+ * @param mixed $page The current page
457
+ * @param mixed $perPage Items per page
458
458
*
459
459
* @return array<int,array<mixed>|Entity|stdClass>
460
460
*/
461
- public function paginate (int $ page , int $ perPage = 10 ) : array
461
+ public function paginate (mixed $ page , mixed $ perPage = 10 ) : array
462
462
{
463
+ $ page = Pager::sanitize ($ page );
464
+ $ perPage = Pager::sanitize ($ perPage );
463
465
$ data = $ this ->getDatabaseToRead ()
464
466
->select ()
465
467
->from ($ this ->getTable ())
You can’t perform that action at this time.
0 commit comments