Skip to content

Commit 3e15515

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 5d8d049 commit 3e15515

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

src/Input/PublishLayerVersionRequest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@ final class PublishLayerVersionRequest extends Input
7676
* LayerName?: string,
7777
* Description?: string,
7878
* Content?: LayerVersionContentInput|array,
79-
* CompatibleRuntimes?: list<Runtime::*>,
79+
* CompatibleRuntimes?: array<Runtime::*>,
8080
* LicenseInfo?: string,
81-
* CompatibleArchitectures?: list<Architecture::*>,
81+
* CompatibleArchitectures?: array<Architecture::*>,
8282
* '@region'?: string|null,
8383
* } $input
8484
*/
@@ -98,9 +98,9 @@ public function __construct(array $input = [])
9898
* LayerName?: string,
9999
* Description?: string,
100100
* Content?: LayerVersionContentInput|array,
101-
* CompatibleRuntimes?: list<Runtime::*>,
101+
* CompatibleRuntimes?: array<Runtime::*>,
102102
* LicenseInfo?: string,
103-
* CompatibleArchitectures?: list<Architecture::*>,
103+
* CompatibleArchitectures?: array<Architecture::*>,
104104
* '@region'?: string|null,
105105
* }|PublishLayerVersionRequest $input
106106
*/

src/LambdaClient.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -396,9 +396,9 @@ public function listVersionsByFunction($input): ListVersionsByFunctionResponse
396396
* LayerName: string,
397397
* Description?: string,
398398
* Content: LayerVersionContentInput|array,
399-
* CompatibleRuntimes?: list<Runtime::*>,
399+
* CompatibleRuntimes?: array<Runtime::*>,
400400
* LicenseInfo?: string,
401-
* CompatibleArchitectures?: list<Architecture::*>,
401+
* CompatibleArchitectures?: array<Architecture::*>,
402402
* '@region'?: string|null,
403403
* }|PublishLayerVersionRequest $input
404404
*

src/ValueObject/FunctionConfiguration.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -236,19 +236,19 @@ final class FunctionConfiguration
236236
* TracingConfig?: null|TracingConfigResponse|array,
237237
* MasterArn?: null|string,
238238
* RevisionId?: null|string,
239-
* Layers?: null|Layer[],
239+
* Layers?: null|array<Layer|array>,
240240
* State?: null|State::*,
241241
* StateReason?: null|string,
242242
* StateReasonCode?: null|StateReasonCode::*,
243243
* LastUpdateStatus?: null|LastUpdateStatus::*,
244244
* LastUpdateStatusReason?: null|string,
245245
* LastUpdateStatusReasonCode?: null|LastUpdateStatusReasonCode::*,
246-
* FileSystemConfigs?: null|FileSystemConfig[],
246+
* FileSystemConfigs?: null|array<FileSystemConfig|array>,
247247
* PackageType?: null|PackageType::*,
248248
* ImageConfigResponse?: null|ImageConfigResponse|array,
249249
* SigningProfileVersionArn?: null|string,
250250
* SigningJobArn?: null|string,
251-
* Architectures?: null|list<Architecture::*>,
251+
* Architectures?: null|array<Architecture::*>,
252252
* EphemeralStorage?: null|EphemeralStorage|array,
253253
* SnapStart?: null|SnapStartResponse|array,
254254
* RuntimeVersionConfig?: null|RuntimeVersionConfig|array,
@@ -314,19 +314,19 @@ public function __construct(array $input)
314314
* TracingConfig?: null|TracingConfigResponse|array,
315315
* MasterArn?: null|string,
316316
* RevisionId?: null|string,
317-
* Layers?: null|Layer[],
317+
* Layers?: null|array<Layer|array>,
318318
* State?: null|State::*,
319319
* StateReason?: null|string,
320320
* StateReasonCode?: null|StateReasonCode::*,
321321
* LastUpdateStatus?: null|LastUpdateStatus::*,
322322
* LastUpdateStatusReason?: null|string,
323323
* LastUpdateStatusReasonCode?: null|LastUpdateStatusReasonCode::*,
324-
* FileSystemConfigs?: null|FileSystemConfig[],
324+
* FileSystemConfigs?: null|array<FileSystemConfig|array>,
325325
* PackageType?: null|PackageType::*,
326326
* ImageConfigResponse?: null|ImageConfigResponse|array,
327327
* SigningProfileVersionArn?: null|string,
328328
* SigningJobArn?: null|string,
329-
* Architectures?: null|list<Architecture::*>,
329+
* Architectures?: null|array<Architecture::*>,
330330
* EphemeralStorage?: null|EphemeralStorage|array,
331331
* SnapStart?: null|SnapStartResponse|array,
332332
* RuntimeVersionConfig?: null|RuntimeVersionConfig|array,

src/ValueObject/LayerVersionsListItem.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ final class LayerVersionsListItem
5959
* Version?: null|string,
6060
* Description?: null|string,
6161
* CreatedDate?: null|string,
62-
* CompatibleRuntimes?: null|list<Runtime::*>,
62+
* CompatibleRuntimes?: null|array<Runtime::*>,
6363
* LicenseInfo?: null|string,
64-
* CompatibleArchitectures?: null|list<Architecture::*>,
64+
* CompatibleArchitectures?: null|array<Architecture::*>,
6565
* } $input
6666
*/
6767
public function __construct(array $input)
@@ -81,9 +81,9 @@ public function __construct(array $input)
8181
* Version?: null|string,
8282
* Description?: null|string,
8383
* CreatedDate?: null|string,
84-
* CompatibleRuntimes?: null|list<Runtime::*>,
84+
* CompatibleRuntimes?: null|array<Runtime::*>,
8585
* LicenseInfo?: null|string,
86-
* CompatibleArchitectures?: null|list<Architecture::*>,
86+
* CompatibleArchitectures?: null|array<Architecture::*>,
8787
* }|LayerVersionsListItem $input
8888
*/
8989
public static function create($input): self

0 commit comments

Comments
 (0)