Skip to content

Commit 431c1e9

Browse files
committed
Fixes #30 -- Update type hinting on Permissions endpoint.
1 parent 29297a2 commit 431c1e9

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/Admin/RolesClient.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function get(int $roleId): Dto\RoleDto
4747
/**
4848
* @param string $name
4949
* @param string[] $permissionsGlobal
50-
* @param string[] $permissionsStation
50+
* @param array<int, array<int, string>> $permissionsStation
5151
*
5252
* @return Dto\RoleDto
5353
*
@@ -72,7 +72,7 @@ public function create(string $name, array $permissionsGlobal, array $permission
7272
* @param int $roleId
7373
* @param string $name
7474
* @param string[] $permissionsGlobal
75-
* @param string[] $permissionsStation
75+
* @param array<int, array<int, string>> $permissionsStation
7676
*
7777
* @return Dto\RoleDto
7878
*

src/Dto/PermissionsDto.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ class PermissionsDto implements JsonSerializable
1313
protected $global;
1414

1515
/**
16-
* @var string[]
16+
* @var array<int, array<int, string>>
1717
*/
1818
protected $station;
1919

2020
/**
2121
* @param string[] $global
22-
* @param string[] $station
22+
* @param array<int, array<int, string>> $station
2323
*/
2424
public function __construct(array $global, array $station)
2525
{
@@ -56,7 +56,7 @@ public function getStation(): array
5656
}
5757

5858
/**
59-
* @param string[] $station
59+
* @param array<int, array<int, string>> $station
6060
*
6161
* @return PermissionsDto
6262
*/

0 commit comments

Comments
 (0)