File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1429,7 +1429,7 @@ public function get($limit = null)
14291429 /**
14301430 * Paginate the given query into a simple paginator.
14311431 *
1432- * @param int|string $perPage Supporting numeric string values, which will be
1432+ * @param int|string|null $perPage Supporting numeric string values, which will be
14331433 * internally converted to `int`
14341434 *
14351435 * @param string $pageParam Parameter name on url
Original file line number Diff line number Diff line change @@ -319,15 +319,15 @@ private function resetKeys(?array $options = [], $links = true)
319319 * Get Pagination data
320320 * @param \Tamedevelopers\Database\Schema\Builder $query
321321 * @param int $totalCount
322- * @param int|string $perPage
322+ * @param int|string|null $perPage
323323 *
324324 * @return $this
325325 */
326- protected function getPagination (Builder $ query , $ totalCount , int | string $ perPage = 15 )
326+ protected function getPagination (Builder $ query , $ totalCount , $ perPage = 15 )
327327 {
328328 try {
329329 // convert to int
330- $ perPage = (int ) $ perPage ;
330+ $ perPage = (int ) empty ( $ perPage ) ? 15 : $ perPage ;
331331
332332 // reset headers
333333 $ this ->asset ->headerControlNoCache ();
You can’t perform that action at this time.
0 commit comments