mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-26 21:43:53 +00:00
Make sure that null|string passed is always a string
This commit is contained in:
@@ -47,7 +47,7 @@ class PaginationRequest extends ApiRequest
|
|||||||
public function rules(): array
|
public function rules(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'sort' => ['nullable', new IsValidSortInstruction($this->sortClass)],
|
'sort' => ['nullable', new IsValidSortInstruction((string)$this->sortClass)],
|
||||||
'limit' => 'numeric|min:1|max:131337',
|
'limit' => 'numeric|min:1|max:131337',
|
||||||
'page' => 'numeric|min:1|max:131337',
|
'page' => 'numeric|min:1|max:131337',
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user