Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Further docblock fixes #639

Merged
merged 4 commits into from
Oct 13, 2023
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions src/BouncerFacade.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
* @method static \Silber\Bouncer\Contracts\Clipboard getClipboard()
* @method static self setClipboard(\Silber\Bouncer\Contracts\Clipboard $clipboard)
* @method static self registerClipboardAtContainer()
* @method static self cache(null|\Illuminate\Contracts\Cache\Store $cache)
* @method static self cache(null|\Illuminate\Contracts\Cache\Store $cache = null)
* @method static self dontCache()
* @method static self refresh(null|\Illuminate\Database\Eloquent\Model $authority)
* @method static self refresh(null|\Illuminate\Database\Eloquent\Model $authority = null)
* @method static self refreshFor(\Illuminate\Database\Eloquent\Model $authority)
* @method static self setGate(\Illuminate\Contracts\Auth\Access\Gate $gate)
* @method static \Illuminate\Contracts\Auth\Access\Gate|null getGate()
Expand All @@ -35,16 +35,16 @@
* @method static bool cannot(string $ability, array|mixed $arguments = [])
* @method static bool allows(string $ability, array|mixed $arguments = [])
* @method static bool denies(string $ability, array|mixed $arguments = [])
* @method static \Silber\Bouncer\Database\Role role(array $attributes)
* @method static \Silber\Bouncer\Database\Ability ability(array $attributes)
* @method static self runBeforePolicies(bool $boolean)
* @method static self ownedVia(string|\Closure $model, string|\Closure|null $attribute)
* @method static \Silber\Bouncer\Database\Role role(array $attributes = [])
* @method static \Silber\Bouncer\Database\Ability ability(array $attributes = [])
* @method static self runBeforePolicies(bool $boolean = true)
* @method static self ownedVia(string|\Closure $model, string|\Closure|null $attribute = null)
* @method static self useAbilityModel(string $model)
* @method static self useRoleModel(string $model)
* @method static self useUserModel(string $model)
* @method static self tables(array $map)
* @method static mixed scope(null|\Silber\Bouncer\Contracts\Scope $scope)
*
* @method static mixed scope(null|\Silber\Bouncer\Contracts\Scope $scope = null)
*
* @see \Silber\Bouncer\Bouncer
*/
class BouncerFacade extends Facade
Expand Down
2 changes: 1 addition & 1 deletion src/Conductors/Concerns/AssociatesAbilities.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ trait AssociatesAbilities
/**
* Associate the abilities with the authority.
*
* @param \Illuminate\Database\Eloquent\model|array|int $abilities
* @param \Illuminate\Database\Eloquent\model|array|int|string $abilities
* @param \Illuminate\Database\Eloquent\Model|string|null $model
* @param array $attributes
* @return \Silber\Bouncer\Conductors\Lazy\ConductsAbilities|null
Expand Down