Skip to content

Commit 0806599

Browse files
fix: correct model type in ServiceIntervention global scope callback
1 parent 61f9033 commit 0806599

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Models/ServiceIntervention.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ protected static function booted()
2929
{
3030
parent::booted();
3131
static::addGlobalScope(new SortOrder);
32-
static::creating(function (Service $model): void {
32+
static::creating(function (ServiceIntervention $model): void {
3333
if (! isset($model->sort)) {
3434
$model->sort = static::max('sort') + 1;
3535
}

0 commit comments

Comments
 (0)