mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Replace methods with safe variants. Let's see how this works out.
This commit is contained in:
@@ -50,7 +50,7 @@ class Configuration extends Model
|
||||
*/
|
||||
public function getDataAttribute($value)
|
||||
{
|
||||
return json_decode($value);
|
||||
return \Safe\json_decode($value);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -58,6 +58,6 @@ class Configuration extends Model
|
||||
*/
|
||||
public function setDataAttribute($value): void
|
||||
{
|
||||
$this->attributes['data'] = json_encode($value);
|
||||
$this->attributes['data'] = \Safe\json_encode($value);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user