mirror of
				https://github.com/firefly-iii/firefly-iii.git
				synced 2025-10-31 02:36:28 +00:00 
			
		
		
		
	Fix various code.
This commit is contained in:
		| @@ -29,6 +29,8 @@ use Illuminate\Support\Facades\Validator; | ||||
| use Closure; | ||||
| use JsonException; | ||||
| 
 | ||||
| use function Safe\json_decode; | ||||
| 
 | ||||
| /** | ||||
|  * Class IsValidBulkClause | ||||
|  */ | ||||
| @@ -65,7 +67,7 @@ class IsValidBulkClause implements ValidationRule | ||||
|     private function basicValidation(string $value): bool | ||||
|     { | ||||
|         try { | ||||
|             $array = \Safe\json_decode($value, true, 8, JSON_THROW_ON_ERROR); | ||||
|             $array = json_decode($value, true, 8, JSON_THROW_ON_ERROR); | ||||
|         } catch (JsonException) { | ||||
|             $this->error = (string) trans('validation.json'); | ||||
| 
 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user