diff --git a/src/Content/Lock.php b/src/Content/Lock.php index 25a1580b73..5d70c26c15 100644 --- a/src/Content/Lock.php +++ b/src/Content/Lock.php @@ -179,7 +179,10 @@ public static function legacy(ModelWithContent $model): static|null */ public static function legacyFile(ModelWithContent $model): string { - $root = $model::CLASS_ALIAS === 'file' ? dirname($model->root()) : $model->root(); + $root = match ($model::CLASS_ALIAS) { + 'file' => dirname($model->root()), + default => $model->root() + }; return $root . '/.lock'; }