Skip to content

Commit

Permalink
Update HasPermissions::collectPermissions() docblock (#2641)
Browse files Browse the repository at this point in the history
* Update HasPermissions::collectPermissions() docblock
* Update HasRoles::collectRoles() docblock

---------

Co-authored-by: Chris Brown <code@drbyte.dev>
  • Loading branch information
Plytas and drbyte authored Mar 21, 2024
1 parent 48769a2 commit 0c234d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Traits/HasPermissions.php
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ public function getAllPermissions(): Collection
}

/**
* Returns permissions ids as array keys
* Returns array of permissions ids
*
* @param string|int|array|Permission|Collection|\BackedEnum $permissions
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Traits/HasRoles.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public function scopeWithoutRole(Builder $query, $roles, $guard = null): Builder
}

/**
* Returns roles ids as array keys
* Returns array of role ids
*
* @param string|int|array|Role|Collection|\BackedEnum $roles
*/
Expand Down

0 comments on commit 0c234d6

Please sign in to comment.