Skip to content

Commit

Permalink
Add BackedEnum to Authorizable methods (#53079)
Browse files Browse the repository at this point in the history
  • Loading branch information
bastien-phi authored Oct 9, 2024
1 parent cf4bfd6 commit 8fbb940
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Illuminate/Foundation/Auth/Access/Authorizable.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ trait Authorizable
/**
* Determine if the entity has the given abilities.
*
* @param iterable|string $abilities
* @param iterable|\BackedEnum|string $abilities
* @param array|mixed $arguments
* @return bool
*/
Expand All @@ -21,7 +21,7 @@ public function can($abilities, $arguments = [])
/**
* Determine if the entity has any of the given abilities.
*
* @param iterable|string $abilities
* @param iterable|\BackedEnum|string $abilities
* @param array|mixed $arguments
* @return bool
*/
Expand All @@ -33,7 +33,7 @@ public function canAny($abilities, $arguments = [])
/**
* Determine if the entity does not have the given abilities.
*
* @param iterable|string $abilities
* @param iterable|\BackedEnum|string $abilities
* @param array|mixed $arguments
* @return bool
*/
Expand All @@ -45,7 +45,7 @@ public function cant($abilities, $arguments = [])
/**
* Determine if the entity does not have the given abilities.
*
* @param iterable|string $abilities
* @param iterable|\BackedEnum|string $abilities
* @param array|mixed $arguments
* @return bool
*/
Expand Down

0 comments on commit 8fbb940

Please sign in to comment.