mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-01-09 20:11:22 +00:00
Import statements and update configuration.
This commit is contained in:
@@ -25,6 +25,7 @@ namespace FireflyIII\Support;
|
||||
|
||||
use Illuminate\Support\Collection;
|
||||
use Illuminate\Support\Facades\Cache;
|
||||
use JsonException;
|
||||
|
||||
/**
|
||||
* Class CacheProperties.
|
||||
@@ -80,7 +81,7 @@ class CacheProperties
|
||||
foreach ($this->properties as $property) {
|
||||
try {
|
||||
$content = sprintf('%s%s', $content, \Safe\json_encode($property, JSON_THROW_ON_ERROR));
|
||||
} catch (\JsonException) {
|
||||
} catch (JsonException) {
|
||||
// @ignoreException
|
||||
$content = sprintf('%s%s', $content, hash('sha256', (string) time()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user