mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-17 01:42:19 +00:00
Various code fixes
This commit is contained in:
@@ -38,7 +38,8 @@ class ALERepository implements ALERepositoryInterface
|
||||
*/
|
||||
public function getForObject(Model $model): Collection
|
||||
{
|
||||
return AuditLogEntry::where('auditable_id', $model->id)->where('auditable_type', get_class($model))->get();
|
||||
// all Models have an ID.
|
||||
return AuditLogEntry::where('auditable_id', $model->id)->where('auditable_type', get_class($model))->get(); // @phpstan-ignore-line
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user