Skip to content

Commit 2c214c5

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 4a3e502 commit 2c214c5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/FirehoseClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ public function putRecord($input): PutRecordOutput
134134
*
135135
* @param array{
136136
* DeliveryStreamName: string,
137-
* Records: Record[],
137+
* Records: array<Record|array>,
138138
* '@region'?: string|null,
139139
* }|PutRecordBatchInput $input
140140
*

src/Input/PutRecordBatchInput.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ final class PutRecordBatchInput extends Input
3131
/**
3232
* @param array{
3333
* DeliveryStreamName?: string,
34-
* Records?: Record[],
34+
* Records?: array<Record|array>,
3535
* '@region'?: string|null,
3636
* } $input
3737
*/
@@ -45,7 +45,7 @@ public function __construct(array $input = [])
4545
/**
4646
* @param array{
4747
* DeliveryStreamName?: string,
48-
* Records?: Record[],
48+
* Records?: array<Record|array>,
4949
* '@region'?: string|null,
5050
* }|PutRecordBatchInput $input
5151
*/

0 commit comments

Comments
 (0)