diff --git a/src/Fields/File.php b/src/Fields/File.php index 8ea014ae..e27184e8 100644 --- a/src/Fields/File.php +++ b/src/Fields/File.php @@ -227,7 +227,6 @@ protected function prune(Request $request, Model $model, array $keys): int public function toOption(Request $request, Model $model, Model $related): array { /** @var \Cone\Root\Models\Medium $related */ - $option = parent::toOption($request, $model, $related); $name = sprintf( diff --git a/src/Fields/Meta.php b/src/Fields/Meta.php index 01a2ea47..40cacc08 100644 --- a/src/Fields/Meta.php +++ b/src/Fields/Meta.php @@ -25,7 +25,6 @@ public function __construct(string $label, string $modelAttribute = null, Closur { $relation ??= function (Model $model): EloquentRelation { /** @phpstan-var \Tests\MetaDataModel $model */ - $related = $model->metaData()->getRelated(); return $model->metaData()