diff --git a/src/BouncerFacade.php b/src/BouncerFacade.php index 58ec2cd..da66ddf 100644 --- a/src/BouncerFacade.php +++ b/src/BouncerFacade.php @@ -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() @@ -37,14 +37,14 @@ * @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 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 diff --git a/src/Conductors/Concerns/AssociatesAbilities.php b/src/Conductors/Concerns/AssociatesAbilities.php index 53a91a9..559923e 100644 --- a/src/Conductors/Concerns/AssociatesAbilities.php +++ b/src/Conductors/Concerns/AssociatesAbilities.php @@ -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