Skip to content

Commit

Permalink
Merge tag 'v11.42.0'
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
  • Loading branch information
crynobone committed Feb 12, 2025
2 parents 4646699 + 60fc8ab commit e54e976
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions Access/Gate.php
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ protected function authorizeOnDemand($condition, $message, $code, $allowWhenResp
/**
* Define a new ability.
*
* @param \BackedEnum|string $ability
* @param \UnitEnum|string $ability
* @param callable|array|string $callback
* @return $this
*
Expand Down Expand Up @@ -325,7 +325,7 @@ public function after(callable $callback)
/**
* Determine if all of the given abilities should be granted for the current user.
*
* @param iterable|\BackedEnum|string $ability
* @param iterable|\UnitEnum|string $ability
* @param array|mixed $arguments
* @return bool
*/
Expand All @@ -337,7 +337,7 @@ public function allows($ability, $arguments = [])
/**
* Determine if any of the given abilities should be denied for the current user.
*
* @param iterable|\BackedEnum|string $ability
* @param iterable|\UnitEnum|string $ability
* @param array|mixed $arguments
* @return bool
*/
Expand All @@ -349,7 +349,7 @@ public function denies($ability, $arguments = [])
/**
* Determine if all of the given abilities should be granted for the current user.
*
* @param iterable|\BackedEnum|string $abilities
* @param iterable|\UnitEnum|string $abilities
* @param array|mixed $arguments
* @return bool
*/
Expand All @@ -363,7 +363,7 @@ public function check($abilities, $arguments = [])
/**
* Determine if any one of the given abilities should be granted for the current user.
*
* @param iterable|\BackedEnum|string $abilities
* @param iterable|\UnitEnum|string $abilities
* @param array|mixed $arguments
* @return bool
*/
Expand All @@ -375,7 +375,7 @@ public function any($abilities, $arguments = [])
/**
* Determine if all of the given abilities should be denied for the current user.
*
* @param iterable|\BackedEnum|string $abilities
* @param iterable|\UnitEnum|string $abilities
* @param array|mixed $arguments
* @return bool
*/
Expand All @@ -387,7 +387,7 @@ public function none($abilities, $arguments = [])
/**
* Determine if the given ability should be granted for the current user.
*
* @param \BackedEnum|string $ability
* @param \UnitEnum|string $ability
* @param array|mixed $arguments
* @return \Illuminate\Auth\Access\Response
*
Expand All @@ -401,7 +401,7 @@ public function authorize($ability, $arguments = [])
/**
* Inspect the user for the given ability.
*
* @param \BackedEnum|string $ability
* @param \UnitEnum|string $ability
* @param array|mixed $arguments
* @return \Illuminate\Auth\Access\Response
*/
Expand Down
2 changes: 1 addition & 1 deletion Middleware/Authorize.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function __construct(Gate $gate)
/**
* Specify the ability and models for the middleware.
*
* @param \BackedEnum|string $ability
* @param \UnitEnum|string $ability
* @param string ...$models
* @return string
*/
Expand Down

0 comments on commit e54e976

Please sign in to comment.