Skip to content

Commit

Permalink
Add missing return types
Browse files Browse the repository at this point in the history
  • Loading branch information
Baspa committed Sep 20, 2024
1 parent 6b0cfc8 commit f0e61f9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Pages/TwoFactor.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -213,7 +213,8 @@ public function enableAction(): Action
});
}

private function getConfirmableFields()
/** @return array<int|string, array{name: 'authenticator'|'email'|'phone', label: string, default: mixed, rules: array{0: 'required', 1?: 'email'}}> */
private function getConfirmableFields(): array
{
$confirmableOptions = config('filament-two-factor-auth.options', [
TwoFactorType::email,
Expand Down

0 comments on commit f0e61f9

Please sign in to comment.