mirror of
				https://github.com/firefly-iii/firefly-iii.git
				synced 2025-10-31 02:36:28 +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 | ||||
|     { | ||||
|         return [ | ||||
|             'sort'  => ['nullable', new IsValidSortInstruction($this->sortClass)], | ||||
|             'sort'  => ['nullable', new IsValidSortInstruction((string)$this->sortClass)], | ||||
|             'limit' => 'numeric|min:1|max:131337', | ||||
|             'page'  => 'numeric|min:1|max:131337', | ||||
|         ]; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user