diff --git a/app/Actions/Jetstream/AddTeamMember.php b/app/Actions/Jetstream/AddTeamMember.php index cf3ae4b..43f92a0 100644 --- a/app/Actions/Jetstream/AddTeamMember.php +++ b/app/Actions/Jetstream/AddTeamMember.php @@ -18,7 +18,7 @@ class AddTeamMember implements AddsTeamMembers /** * Add a new team member to the given team. */ - public function add(User $user, Team $team, string $email, string $role = null): void + public function add(User $user, Team $team, string $email, ?string $role = null): void { Gate::forUser($user)->authorize('addTeamMember', $team); diff --git a/app/Actions/Jetstream/InviteTeamMember.php b/app/Actions/Jetstream/InviteTeamMember.php index 8394796..7aa2093 100644 --- a/app/Actions/Jetstream/InviteTeamMember.php +++ b/app/Actions/Jetstream/InviteTeamMember.php @@ -21,7 +21,7 @@ class InviteTeamMember implements InvitesTeamMembers /** * Invite a new team member to the given team. */ - public function invite(User $user, Team $team, string $email, string $role = null): void + public function invite(User $user, Team $team, string $email, ?string $role = null): void { Gate::forUser($user)->authorize('addTeamMember', $team); diff --git a/database/factories/TeamFactory.php b/database/factories/TeamFactory.php index 2b2fc96..1305204 100644 --- a/database/factories/TeamFactory.php +++ b/database/factories/TeamFactory.php @@ -2,7 +2,6 @@ namespace Database\Factories; -use App\Models\Team; use App\Models\User; use Illuminate\Database\Eloquent\Factories\Factory; diff --git a/database/factories/UserFactory.php b/database/factories/UserFactory.php index 46cb47d..39e834a 100644 --- a/database/factories/UserFactory.php +++ b/database/factories/UserFactory.php @@ -48,7 +48,7 @@ public function unverified(): static /** * Indicate that the user should have a personal team. */ - public function withPersonalTeam(callable $callback = null): static + public function withPersonalTeam(?callable $callback = null): static { if (! Features::hasTeamFeatures()) { return $this->state([]);