Skip to content

Commit

Permalink
Merge pull request #377 from alisalehi1380/patch-1
Browse files Browse the repository at this point in the history
Add mount & getProfileFormSchema func return types
  • Loading branch information
jeffgreco13 authored Jul 15, 2024
2 parents 5323369 + f1386f9 commit 6d32088
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Livewire/PersonalInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class PersonalInfo extends MyProfileComponent

public static $sort = 10;

public function mount()
public function mount(): void
{
$this->user = Filament::getCurrentPanel()->auth()->user();
$this->userClass = get_class($this->user);
Expand All @@ -36,7 +36,7 @@ public function mount()
$this->form->fill($this->user->only($this->only));
}

protected function getProfileFormSchema()
protected function getProfileFormSchema(): array
{
$groupFields = Forms\Components\Group::make([
$this->getNameComponent(),
Expand Down

0 comments on commit 6d32088

Please sign in to comment.