You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Direction
Error:
Argument 1 passed to App\Models\MyModel::findAll() must be of the type int, null given, when we use $myModel->paginate() without params.
It error because $perPage default null and findAll can't got null in $limit. $perPage not required and contains bad value by default.
Direction
Error:
Argument 1 passed to App\Models\MyModel::findAll() must be of the type int, null given, when we use $myModel->paginate() without params.
It error because $perPage default null and findAll can't got null in $limit. $perPage not required and contains bad value by default.
Break commit: 214e611#diff-384916434b0b7a276d4abf274120e2c3 Now we don't have line
$perPage = $perPage ?? config('Pager')->perPage;
Now we have two ways:
= null
fromint $perPage = null
, when $perPage will be requiredint $perPage = 20
The text was updated successfully, but these errors were encountered: