mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-22 12:11:19 +00:00
Replace methods with safe variants. Let's see how this works out.
This commit is contained in:
@@ -254,7 +254,7 @@ class TransactionGroupTwig extends AbstractExtension
|
||||
return today(config('app.timezone'));
|
||||
}
|
||||
|
||||
return new Carbon(json_decode($entry->data, false));
|
||||
return new Carbon(\Safe\json_decode($entry->data, false));
|
||||
}
|
||||
);
|
||||
}
|
||||
@@ -275,7 +275,7 @@ class TransactionGroupTwig extends AbstractExtension
|
||||
return '';
|
||||
}
|
||||
|
||||
return json_decode($entry->data, true);
|
||||
return \Safe\json_decode($entry->data, true);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user