Skip to content

Commit ec1f246

Browse files
author
Ethan
committed
paginate
1 parent 5ff39f9 commit ec1f246

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Builder.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,7 @@ public function paginate($pageSize = null, $currentPage = null)
590590
{
591591
$pageConfig = array();
592592
if ($pageSize !== null) {
593-
$pageConfig['pageSize'] = $pageSize;
593+
$pageConfig['pageSize'] = intval($pageSize);
594594
}
595595
if ($currentPage !== null) {
596596
$pageConfig['currentPage'] = $currentPage;
@@ -916,8 +916,8 @@ public function lockInShareMode()
916916
}
917917

918918
/**
919-
* @see lockInShareMode
920919
* @return $this
920+
* @see lockInShareMode
921921
*/
922922
public function sharedLock()
923923
{
@@ -940,7 +940,7 @@ public function field($field)
940940
*
941941
* 如果捕获到任何异常, 将自动回滚事务后,继续抛出异常
942942
*
943-
* @param \Closure $callback
943+
* @param \Closure $callback
944944
* @return mixed
945945
*
946946
* @throws \Throwable

0 commit comments

Comments
 (0)