chore: fix various qodana issues

This commit is contained in:
James Cole
2023-06-04 06:30:22 +02:00
parent 160c364d2a
commit 688ca8e374
20 changed files with 56 additions and 106 deletions

View File

@@ -80,11 +80,10 @@ class AccountMeta extends Model
* @param mixed $value
*
* @return mixed
* @throws JsonException
*/
public function getDataAttribute($value)
public function getDataAttribute($value): string
{
return json_decode($value, true, 512, JSON_THROW_ON_ERROR);
return (string)json_decode($value, true);
}
/**