Skip to content

Commit

Permalink
revert model property changes
Browse files Browse the repository at this point in the history
  • Loading branch information
bert-w committed Jul 17, 2024
1 parent d1dc922 commit f47e68a
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/Traits/Models.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
trait Models
{
/**
* @var ?class-string<\Illuminate\Contracts\Auth\Authenticatable>
* @var class-string<\Illuminate\Contracts\Auth\Authenticatable>
*/
protected ?string $userModelClass = null;
protected string $userModelClass = User::class;

/**
* @var class-string<\DutchCodingCompany\FilamentSocialite\Models\Contracts\FilamentSocialiteUser>
Expand All @@ -40,10 +40,7 @@ public function userModelClass(string $value): static
*/
public function getUserModelClass(): string
{
/** @var class-string<\Illuminate\Database\Eloquent\Model&\Illuminate\Contracts\Auth\Authenticatable> */
$user = User::class;

return $this->userModelClass ?? $user;
return $this->userModelClass;
}

/**
Expand Down

0 comments on commit f47e68a

Please sign in to comment.