mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-01-10 12:24:50 +00:00
Code for #452
This commit is contained in:
@@ -95,6 +95,7 @@ class CacheProperties
|
||||
*/
|
||||
private function md5()
|
||||
{
|
||||
$this->md5 = '';
|
||||
foreach ($this->properties as $property) {
|
||||
|
||||
if ($property instanceof Collection || $property instanceof EloquentCollection) {
|
||||
@@ -108,6 +109,12 @@ class CacheProperties
|
||||
if (is_object($property)) {
|
||||
$this->md5 .= $property->__toString();
|
||||
}
|
||||
if (is_bool($property) && $property === false) {
|
||||
$this->md5 .= 'false';
|
||||
}
|
||||
if (is_bool($property) && $property === true) {
|
||||
$this->md5 .= 'true';
|
||||
}
|
||||
|
||||
$this->md5 .= json_encode($property);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user