Upgrade to 4.6.0
This commit is contained in:
@@ -10,7 +10,7 @@ return [
|
||||
/**
|
||||
* Columns config for `layout: table`
|
||||
*/
|
||||
'columns' => function (array $columns = null) {
|
||||
'columns' => function (array|null $columns = null) {
|
||||
return $columns ?? [];
|
||||
},
|
||||
/**
|
||||
|
@@ -5,7 +5,7 @@ return [
|
||||
/**
|
||||
* Sets the maximum number of allowed entries in the section
|
||||
*/
|
||||
'max' => function (int $max = null) {
|
||||
'max' => function (int|null $max = null) {
|
||||
return $max;
|
||||
}
|
||||
],
|
||||
|
@@ -5,7 +5,7 @@ return [
|
||||
/**
|
||||
* Sets the minimum number of required entries in the section
|
||||
*/
|
||||
'min' => function (int $min = null) {
|
||||
'min' => function (int|null $min = null) {
|
||||
return $min;
|
||||
}
|
||||
],
|
||||
|
@@ -12,9 +12,9 @@ return [
|
||||
return $limit;
|
||||
},
|
||||
/**
|
||||
* Sets the default page for the pagination. This will overwrite default pagination.
|
||||
* Sets the default page for the pagination.
|
||||
*/
|
||||
'page' => function (int $page = null) {
|
||||
'page' => function (int|null $page = null) {
|
||||
return App::instance()->request()->get('page', $page);
|
||||
},
|
||||
],
|
||||
|
@@ -11,7 +11,7 @@ return [
|
||||
/**
|
||||
* Sets the query to a parent to find items for the list
|
||||
*/
|
||||
'parent' => function (string $parent = null) {
|
||||
'parent' => function (string|null $parent = null) {
|
||||
return $parent;
|
||||
}
|
||||
],
|
||||
|
@@ -17,7 +17,7 @@ return [
|
||||
/**
|
||||
* Overwrites manual sorting and sorts by the given field and sorting direction (i.e. `date desc`)
|
||||
*/
|
||||
'sortBy' => function (string $sortBy = null) {
|
||||
'sortBy' => function (string|null $sortBy = null) {
|
||||
return $sortBy;
|
||||
},
|
||||
],
|
||||
|
Reference in New Issue
Block a user