Skip to content

Commit f176df5

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 7fe4a95 commit f176df5

File tree

5 files changed

+14
-14
lines changed

5 files changed

+14
-14
lines changed

src/ValueObject/AlarmConfiguration.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ final class AlarmConfiguration
3030
* @param array{
3131
* enabled?: null|bool,
3232
* ignorePollAlarmFailure?: null|bool,
33-
* alarms?: null|Alarm[],
33+
* alarms?: null|array<Alarm|array>,
3434
* } $input
3535
*/
3636
public function __construct(array $input)
@@ -44,7 +44,7 @@ public function __construct(array $input)
4444
* @param array{
4545
* enabled?: null|bool,
4646
* ignorePollAlarmFailure?: null|bool,
47-
* alarms?: null|Alarm[],
47+
* alarms?: null|array<Alarm|array>,
4848
* }|AlarmConfiguration $input
4949
*/
5050
public static function create($input): self

src/ValueObject/AutoRollbackConfiguration.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ final class AutoRollbackConfiguration
2424
/**
2525
* @param array{
2626
* enabled?: null|bool,
27-
* events?: null|list<AutoRollbackEvent::*>,
27+
* events?: null|array<AutoRollbackEvent::*>,
2828
* } $input
2929
*/
3030
public function __construct(array $input)
@@ -36,7 +36,7 @@ public function __construct(array $input)
3636
/**
3737
* @param array{
3838
* enabled?: null|bool,
39-
* events?: null|list<AutoRollbackEvent::*>,
39+
* events?: null|array<AutoRollbackEvent::*>,
4040
* }|AutoRollbackConfiguration $input
4141
*/
4242
public static function create($input): self

src/ValueObject/LoadBalancerInfo.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ final class LoadBalancerInfo
3030

3131
/**
3232
* @param array{
33-
* elbInfoList?: null|ELBInfo[],
34-
* targetGroupInfoList?: null|TargetGroupInfo[],
35-
* targetGroupPairInfoList?: null|TargetGroupPairInfo[],
33+
* elbInfoList?: null|array<ELBInfo|array>,
34+
* targetGroupInfoList?: null|array<TargetGroupInfo|array>,
35+
* targetGroupPairInfoList?: null|array<TargetGroupPairInfo|array>,
3636
* } $input
3737
*/
3838
public function __construct(array $input)
@@ -44,9 +44,9 @@ public function __construct(array $input)
4444

4545
/**
4646
* @param array{
47-
* elbInfoList?: null|ELBInfo[],
48-
* targetGroupInfoList?: null|TargetGroupInfo[],
49-
* targetGroupPairInfoList?: null|TargetGroupPairInfo[],
47+
* elbInfoList?: null|array<ELBInfo|array>,
48+
* targetGroupInfoList?: null|array<TargetGroupInfo|array>,
49+
* targetGroupPairInfoList?: null|array<TargetGroupPairInfo|array>,
5050
* }|LoadBalancerInfo $input
5151
*/
5252
public static function create($input): self

src/ValueObject/TargetGroupPairInfo.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ final class TargetGroupPairInfo
2727

2828
/**
2929
* @param array{
30-
* targetGroups?: null|TargetGroupInfo[],
30+
* targetGroups?: null|array<TargetGroupInfo|array>,
3131
* prodTrafficRoute?: null|TrafficRoute|array,
3232
* testTrafficRoute?: null|TrafficRoute|array,
3333
* } $input
@@ -41,7 +41,7 @@ public function __construct(array $input)
4141

4242
/**
4343
* @param array{
44-
* targetGroups?: null|TargetGroupInfo[],
44+
* targetGroups?: null|array<TargetGroupInfo|array>,
4545
* prodTrafficRoute?: null|TrafficRoute|array,
4646
* testTrafficRoute?: null|TrafficRoute|array,
4747
* }|TargetGroupPairInfo $input

src/ValueObject/TargetInstances.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ final class TargetInstances
2626

2727
/**
2828
* @param array{
29-
* tagFilters?: null|EC2TagFilter[],
29+
* tagFilters?: null|array<EC2TagFilter|array>,
3030
* autoScalingGroups?: null|string[],
3131
* ec2TagSet?: null|EC2TagSet|array,
3232
* } $input
@@ -40,7 +40,7 @@ public function __construct(array $input)
4040

4141
/**
4242
* @param array{
43-
* tagFilters?: null|EC2TagFilter[],
43+
* tagFilters?: null|array<EC2TagFilter|array>,
4444
* autoScalingGroups?: null|string[],
4545
* ec2TagSet?: null|EC2TagSet|array,
4646
* }|TargetInstances $input

0 commit comments

Comments
 (0)