From f0e61f9c8438d77350e0a20e0e974c6e4c65a28d Mon Sep 17 00:00:00 2001 From: Baspa Date: Fri, 20 Sep 2024 08:43:19 +0200 Subject: [PATCH] Add missing return types --- src/Pages/TwoFactor.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Pages/TwoFactor.php b/src/Pages/TwoFactor.php index ed7a79c..ae86263 100644 --- a/src/Pages/TwoFactor.php +++ b/src/Pages/TwoFactor.php @@ -90,7 +90,7 @@ public function getConfirmationForm(): array return [ TextInput::make('current_password') ->label(__('Password')) - ->dehydrateStateUsing(fn ($state) => filled($state)) + ->dehydrateStateUsing(fn($state) => filled($state)) ->required() ->password() ->inlineLabel() @@ -213,7 +213,8 @@ public function enableAction(): Action }); } - private function getConfirmableFields() + /** @return array */ + private function getConfirmableFields(): array { $confirmableOptions = config('filament-two-factor-auth.options', [ TwoFactorType::email,