mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
More PHP8.4 updates
This commit is contained in:
@@ -36,7 +36,7 @@ class ALERepository implements ALERepositoryInterface
|
||||
public function getForObject(Model $model): Collection
|
||||
{
|
||||
// all Models have an ID.
|
||||
return AuditLogEntry::where('auditable_id', $model->id)->where('auditable_type', get_class($model))->get();
|
||||
return AuditLogEntry::where('auditable_id', $model->id)->where('auditable_type', $model::class)->get();
|
||||
}
|
||||
|
||||
public function store(array $data): AuditLogEntry
|
||||
|
Reference in New Issue
Block a user