Skip to content

Commit 8fbb940

Browse files
authored
Add BackedEnum to Authorizable methods (#53079)
1 parent cf4bfd6 commit 8fbb940

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Illuminate/Foundation/Auth/Access/Authorizable.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ trait Authorizable
99
/**
1010
* Determine if the entity has the given abilities.
1111
*
12-
* @param iterable|string $abilities
12+
* @param iterable|\BackedEnum|string $abilities
1313
* @param array|mixed $arguments
1414
* @return bool
1515
*/
@@ -21,7 +21,7 @@ public function can($abilities, $arguments = [])
2121
/**
2222
* Determine if the entity has any of the given abilities.
2323
*
24-
* @param iterable|string $abilities
24+
* @param iterable|\BackedEnum|string $abilities
2525
* @param array|mixed $arguments
2626
* @return bool
2727
*/
@@ -33,7 +33,7 @@ public function canAny($abilities, $arguments = [])
3333
/**
3434
* Determine if the entity does not have the given abilities.
3535
*
36-
* @param iterable|string $abilities
36+
* @param iterable|\BackedEnum|string $abilities
3737
* @param array|mixed $arguments
3838
* @return bool
3939
*/
@@ -45,7 +45,7 @@ public function cant($abilities, $arguments = [])
4545
/**
4646
* Determine if the entity does not have the given abilities.
4747
*
48-
* @param iterable|string $abilities
48+
* @param iterable|\BackedEnum|string $abilities
4949
* @param array|mixed $arguments
5050
* @return bool
5151
*/

0 commit comments

Comments
 (0)