Skip to content

Commit 73dc92e

Browse files
committed
docs: add property types
1 parent 22443d0 commit 73dc92e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/authorization.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Groups are defined within the `Shield\Config\AuthGroups` config class.
3838

3939
```php
4040

41-
public $groups = [
41+
public array $groups = [
4242
'superadmin' => [
4343
'title' => 'Super Admin',
4444
'description' => 'Optional description of the group.',
@@ -66,7 +66,7 @@ a scope and action, like `users.create`. The scope would be `users` and the acti
6666
can have a description for display within UIs if needed.
6767

6868
```php
69-
public $permissions = [
69+
public array $permissions = [
7070
'admin.access' => 'Can access the sites admin area',
7171
'admin.settings' => 'Can access the main site settings',
7272
'users.manage-admins' => 'Can manage other admins',
@@ -88,7 +88,7 @@ The matrix is an associative array with the group name as the key,
8888
and an array of permissions that should be applied to that group.
8989

9090
```php
91-
public $matrix = [
91+
public array $matrix = [
9292
'admin' => [
9393
'admin.access',
9494
'users.create', 'users.edit', 'users.delete',
@@ -100,7 +100,7 @@ public $matrix = [
100100
You can use a wildcard within a scope to allow all actions within that scope, by using a `*` in place of the action.
101101

102102
```php
103-
public $matrix = [
103+
public array $matrix = [
104104
'superadmin' => ['admin.*', 'users.*', 'beta.*'],
105105
];
106106
```

0 commit comments

Comments
 (0)