We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ba6c97e commit 6159b09Copy full SHA for 6159b09
2 files changed
Interfaces/RoleInterface.php
@@ -43,7 +43,7 @@ public function getPermission(int $roleKey): object;
43
* List all currently supported roles
44
* @return array
45
*/
46
- public function getSupportedRoles(): array;
+ public static function getSupportedRoles(): array;
47
48
/**
49
* Check if the current user has the "right" permission
Role.php
@@ -98,7 +98,7 @@ public function getPermission(int $roleKey): object
98
99
100
101
- public function getSupportedRoles(): array
+ public static function getSupportedRoles(): array
102
{
103
return static::ROLES;
104
}
0 commit comments