diff --git a/packages/forms/src/Components/Select.php b/packages/forms/src/Components/Select.php index a28c93ae64..a7c82befb2 100644 --- a/packages/forms/src/Components/Select.php +++ b/packages/forms/src/Components/Select.php @@ -277,7 +277,7 @@ class Select extends Field implements Contracts\CanDisableOptions, Contracts\Has $action = Action::make($this->getCreateOptionActionName()) ->label(__('filament-forms::components.select.actions.create_option.label')) - ->form(function (Select $component, Form $form): array | Form | null { + ->form(static function (Select $component, Form $form): array | Form | null { return $component->getCreateOptionActionForm($form->model( $component->getRelationship() ? $component->getRelationship()->getModel()::class : null, ));