mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Remove safe methods.
This commit is contained in:
@@ -63,7 +63,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');
|
||||
|
||||
|
@@ -40,7 +40,7 @@ class IsValidPositiveAmount implements ValidationRule
|
||||
{
|
||||
if (is_array($value)) {
|
||||
$fail('validation.numeric')->translate();
|
||||
$message = sprintf('IsValidPositiveAmount: "%s" is not a number.', \Safe\json_encode($value));
|
||||
$message = sprintf('IsValidPositiveAmount: "%s" is not a number.', json_encode($value));
|
||||
Log::debug($message);
|
||||
Log::channel('audit')->info($message);
|
||||
|
||||
|
@@ -133,7 +133,7 @@ class UniqueAccountNumber implements ValidationRule
|
||||
->where('accounts.user_id', auth()->user()->id)
|
||||
->where('account_types.type', $type)
|
||||
->where('account_meta.name', '=', 'account_number')
|
||||
->where('account_meta.data', \Safe\json_encode($accountNumber))
|
||||
->where('account_meta.data', json_encode($accountNumber))
|
||||
;
|
||||
|
||||
if (null !== $this->account) {
|
||||
|
Reference in New Issue
Block a user