Skip to content

Commit

Permalink
fix(team): Add nullable team_id (#2607)
Browse files Browse the repository at this point in the history
  • Loading branch information
Androlax2 committed Mar 6, 2024
1 parent 3e4630f commit e4fd5ca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/PermissionRegistrar.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public function setPermissionsTeamId($id): void
}

/**
* @return int|string
* @return int|string|null
*/
public function getPermissionsTeamId()
{
Expand Down
4 changes: 2 additions & 2 deletions src/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function getModelForGuard(string $guard)

if (! function_exists('setPermissionsTeamId')) {
/**
* @param int|string|\Illuminate\Database\Eloquent\Model $id
* @param int|string|null|\Illuminate\Database\Eloquent\Model $id
*/
function setPermissionsTeamId($id)
{
Expand All @@ -24,7 +24,7 @@ function setPermissionsTeamId($id)

if (! function_exists('getPermissionsTeamId')) {
/**
* @return int|string
* @return int|string|null
*/
function getPermissionsTeamId()
{
Expand Down

0 comments on commit e4fd5ca

Please sign in to comment.