mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-15 08:35:00 +00:00
Refactor phpstan errors.
This commit is contained in:
@@ -78,19 +78,17 @@ class AccountMeta extends Model
|
||||
/**
|
||||
* @param mixed $value
|
||||
*
|
||||
* @return mixed
|
||||
* @return string
|
||||
*/
|
||||
public function getDataAttribute($value): string
|
||||
public function getDataAttribute(mixed $value): string
|
||||
{
|
||||
return (string)json_decode($value, true);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mixed $value
|
||||
*
|
||||
|
||||
*/
|
||||
public function setDataAttribute($value): void
|
||||
public function setDataAttribute(mixed $value): void
|
||||
{
|
||||
$this->attributes['data'] = json_encode($value);
|
||||
}
|
||||
|
Reference in New Issue
Block a user