Skip to content

Commit 7fc1b10

Browse files
authored
Fix the generated param types for maps and lists (#1466)
The constructor are not enforcing the usage of value objects. They also support passing an array accepted by the create method.
1 parent e1ec02a commit 7fc1b10

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/IamClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ public function createServiceSpecificCredential($input): CreateServiceSpecificCr
166166
* Path?: string,
167167
* UserName: string,
168168
* PermissionsBoundary?: string,
169-
* Tags?: Tag[],
169+
* Tags?: array<Tag|array>,
170170
* '@region'?: string|null,
171171
* }|CreateUserRequest $input
172172
*

src/Input/CreateUserRequest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ final class CreateUserRequest extends Input
7474
* Path?: string,
7575
* UserName?: string,
7676
* PermissionsBoundary?: string,
77-
* Tags?: Tag[],
77+
* Tags?: array<Tag|array>,
7878
* '@region'?: string|null,
7979
* } $input
8080
*/
@@ -92,7 +92,7 @@ public function __construct(array $input = [])
9292
* Path?: string,
9393
* UserName?: string,
9494
* PermissionsBoundary?: string,
95-
* Tags?: Tag[],
95+
* Tags?: array<Tag|array>,
9696
* '@region'?: string|null,
9797
* }|CreateUserRequest $input
9898
*/

src/ValueObject/User.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ final class User
9595
* CreateDate: \DateTimeImmutable,
9696
* PasswordLastUsed?: null|\DateTimeImmutable,
9797
* PermissionsBoundary?: null|AttachedPermissionsBoundary|array,
98-
* Tags?: null|Tag[],
98+
* Tags?: null|array<Tag|array>,
9999
* } $input
100100
*/
101101
public function __construct(array $input)
@@ -119,7 +119,7 @@ public function __construct(array $input)
119119
* CreateDate: \DateTimeImmutable,
120120
* PasswordLastUsed?: null|\DateTimeImmutable,
121121
* PermissionsBoundary?: null|AttachedPermissionsBoundary|array,
122-
* Tags?: null|Tag[],
122+
* Tags?: null|array<Tag|array>,
123123
* }|User $input
124124
*/
125125
public static function create($input): self

0 commit comments

Comments
 (0)