Skip to content

Commit

Permalink
[rector] Rector fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lee-to authored and github-actions[bot] committed Nov 30, 2024
1 parent c2fe781 commit 93114bb
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
use MoonShine\Laravel\Enums\Ability;
use MoonShine\Laravel\Enums\Action;
use MoonShine\Laravel\Http\Requests\MoonShineFormRequest;
use MoonShine\Laravel\TypeCasts\ModelDataWrapper;
use MoonShine\UI\Components\FormBuilder;
use MoonShine\UI\Contracts\FieldsWrapperContract;
use Throwable;

Expand Down Expand Up @@ -55,7 +53,7 @@ public function getField(): ?FieldContract
}

$fields = $resource->getIndexFields();
$fields->each(fn(FieldContract $field) => $field instanceof FieldsWrapperContract ? $field->fillData($data) : $field);
$fields->each(fn(FieldContract $field): FieldContract => $field instanceof FieldsWrapperContract ? $field->fillData($data) : $field);

return $fields
->withoutWrappers()
Expand Down

0 comments on commit 93114bb

Please sign in to comment.