Skip to content

Commit

Permalink
add null to type
Browse files Browse the repository at this point in the history
  • Loading branch information
dododedodonl committed Nov 28, 2024
1 parent c813d88 commit 1d3b73d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Traits/Callbacks.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ trait Callbacks
/**
* @param ?\Closure(string $provider, \Laravel\Socialite\Contracts\User $oauthUser, \DutchCodingCompany\FilamentSocialite\FilamentSocialitePlugin $plugin): \Illuminate\Contracts\Auth\Authenticatable $callback
*/
public function createUserUsing(Closure $callback = null): static
public function createUserUsing(?Closure $callback = null): static
{
$this->createUserUsing = $callback;

Expand Down Expand Up @@ -99,9 +99,9 @@ public function getRedirectAfterLoginUsing(): Closure
}

/**
* @param \Closure(string $provider, \Laravel\Socialite\Contracts\User $oauthUser, \DutchCodingCompany\FilamentSocialite\FilamentSocialitePlugin $plugin): ?(\Illuminate\Contracts\Auth\Authenticatable) $callback
* @param ?\Closure(string $provider, \Laravel\Socialite\Contracts\User $oauthUser, \DutchCodingCompany\FilamentSocialite\FilamentSocialitePlugin $plugin): ?(\Illuminate\Contracts\Auth\Authenticatable) $callback
*/
public function resolveUserUsing(Closure $callback = null): static
public function resolveUserUsing(?Closure $callback = null): static
{
$this->resolveUserUsing = $callback;

Expand All @@ -125,9 +125,9 @@ public function getResolveUserUsing(): Closure
}

/**
* @param \Closure(\DutchCodingCompany\FilamentSocialite\FilamentSocialitePlugin $plugin, \Laravel\Socialite\Contracts\User $oauthUser): bool $callback
* @param ?\Closure(\DutchCodingCompany\FilamentSocialite\FilamentSocialitePlugin $plugin, \Laravel\Socialite\Contracts\User $oauthUser): bool $callback
*/
public function authorizeUserUsing(Closure $callback = null): static
public function authorizeUserUsing(?Closure $callback = null): static
{
$this->authorizeUserUsing = $callback;

Expand Down

0 comments on commit 1d3b73d

Please sign in to comment.