mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-05-03 20:56:21 +00:00
Replace methods with safe variants. Let's see how this works out.
This commit is contained in:
@@ -78,7 +78,7 @@ class CacheProperties
|
||||
$content = '';
|
||||
foreach ($this->properties as $property) {
|
||||
try {
|
||||
$content .= json_encode($property, JSON_THROW_ON_ERROR);
|
||||
$content .= \Safe\json_encode($property, JSON_THROW_ON_ERROR);
|
||||
} catch (\JsonException $e) {
|
||||
// @ignoreException
|
||||
$content .= hash('sha256', (string) time());
|
||||
|
||||
Reference in New Issue
Block a user