Fix phpstan issues

This commit is contained in:
James Cole
2025-09-07 07:31:00 +02:00
parent b87b99a755
commit 296a64e284
103 changed files with 605 additions and 617 deletions

View File

@@ -41,15 +41,12 @@ class TransactionJournalMeta extends Model
protected $table = 'journal_meta';
/**
* @return mixed
*/
protected function data(): Attribute
{
return Attribute::make(get: fn ($value) => json_decode((string) $value, false), set: function ($value) {
$data = json_encode($value);
return ['data' => $data, 'hash' => hash('sha256', (string) $data)];
return ['data' => $data, 'hash' => hash('sha256', $data)];
});
}