Skip to content

Commit 4039f1d

Browse files
authored
Add nullable types from Pint (#1499)
1 parent 0308f8d commit 4039f1d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Diff for: database/factories/UserFactory.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function unverified(): static
5252
/**
5353
* Indicate that the user should have a personal team.
5454
*/
55-
public function withPersonalTeam(callable $callback = null): static
55+
public function withPersonalTeam(?callable $callback = null): static
5656
{
5757
if (! Features::hasTeamFeatures()) {
5858
return $this->state([]);

Diff for: stubs/app/Actions/Jetstream/AddTeamMember.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class AddTeamMember implements AddsTeamMembers
1818
/**
1919
* Add a new team member to the given team.
2020
*/
21-
public function add(User $user, Team $team, string $email, string $role = null): void
21+
public function add(User $user, Team $team, string $email, ?string $role = null): void
2222
{
2323
Gate::forUser($user)->authorize('addTeamMember', $team);
2424

Diff for: stubs/app/Actions/Jetstream/InviteTeamMember.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class InviteTeamMember implements InvitesTeamMembers
2121
/**
2222
* Invite a new team member to the given team.
2323
*/
24-
public function invite(User $user, Team $team, string $email, string $role = null): void
24+
public function invite(User $user, Team $team, string $email, ?string $role = null): void
2525
{
2626
Gate::forUser($user)->authorize('addTeamMember', $team);
2727

0 commit comments

Comments
 (0)