Skip to content

Commit 148f944

Browse files
authored
Do not initialize array property (#1082)
1 parent 48322a0 commit 148f944

9 files changed

+15
-15
lines changed

src/Result/BatchGetItemOutput.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,19 @@ class BatchGetItemOutput extends Result implements \IteratorAggregate
2323
* A map of table name to a list of items. Each object in `Responses` consists of a table name, along with a map of
2424
* attribute data consisting of the data type and attribute value.
2525
*/
26-
private $responses = [];
26+
private $responses;
2727

2828
/**
2929
* A map of tables and their respective keys that were not processed with the current response. The `UnprocessedKeys`
3030
* value is in the same form as `RequestItems`, so the value can be provided directly to a subsequent `BatchGetItem`
3131
* operation. For more information, see `RequestItems` in the Request Parameters section.
3232
*/
33-
private $unprocessedKeys = [];
33+
private $unprocessedKeys;
3434

3535
/**
3636
* The read capacity units consumed by the entire `BatchGetItem` operation.
3737
*/
38-
private $consumedCapacity = [];
38+
private $consumedCapacity;
3939

4040
/**
4141
* @param bool $currentPageOnly When true, iterates over items of the current page. Otherwise also fetch items in the next pages.

src/Result/BatchWriteItemOutput.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,18 @@ class BatchWriteItemOutput extends Result
2222
* same form as `RequestItems`, so you can provide this value directly to a subsequent `BatchGetItem` operation. For
2323
* more information, see `RequestItems` in the Request Parameters section.
2424
*/
25-
private $unprocessedItems = [];
25+
private $unprocessedItems;
2626

2727
/**
2828
* A list of tables that were processed by `BatchWriteItem` and, for each table, information about any item collections
2929
* that were affected by individual `DeleteItem` or `PutItem` operations.
3030
*/
31-
private $itemCollectionMetrics = [];
31+
private $itemCollectionMetrics;
3232

3333
/**
3434
* The capacity units consumed by the entire `BatchWriteItem` operation.
3535
*/
36-
private $consumedCapacity = [];
36+
private $consumedCapacity;
3737

3838
/**
3939
* @return ConsumedCapacity[]

src/Result/DeleteItemOutput.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class DeleteItemOutput extends Result
1818
* A map of attribute names to `AttributeValue` objects, representing the item as it appeared before the `DeleteItem`
1919
* operation. This map appears in the response only if `ReturnValues` was specified as `ALL_OLD` in the request.
2020
*/
21-
private $attributes = [];
21+
private $attributes;
2222

2323
/**
2424
* The capacity units consumed by the `DeleteItem` operation. The data returned includes the total provisioned

src/Result/GetItemOutput.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class GetItemOutput extends Result
1616
/**
1717
* A map of attribute names to `AttributeValue` objects, as specified by `ProjectionExpression`.
1818
*/
19-
private $item = [];
19+
private $item;
2020

2121
/**
2222
* The capacity units consumed by the `GetItem` operation. The data returned includes the total provisioned throughput

src/Result/ListTablesOutput.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class ListTablesOutput extends Result implements \IteratorAggregate
1919
* The names of the tables associated with the current account at the current endpoint. The maximum size of this array
2020
* is 100.
2121
*/
22-
private $tableNames = [];
22+
private $tableNames;
2323

2424
/**
2525
* The name of the last table in the current page of results. Use this value as the `ExclusiveStartTableName` in a new

src/Result/PutItemOutput.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class PutItemOutput extends Result
1818
* The attribute values as they appeared before the `PutItem` operation, but only if `ReturnValues` is specified as
1919
* `ALL_OLD` in the request. Each element consists of an attribute name and an attribute value.
2020
*/
21-
private $attributes = [];
21+
private $attributes;
2222

2323
/**
2424
* The capacity units consumed by the `PutItem` operation. The data returned includes the total provisioned throughput

src/Result/QueryOutput.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class QueryOutput extends Result implements \IteratorAggregate
2222
* An array of item attributes that match the query criteria. Each element in this array consists of an attribute name
2323
* and the value for that attribute.
2424
*/
25-
private $items = [];
25+
private $items;
2626

2727
/**
2828
* The number of items in the response.
@@ -42,7 +42,7 @@ class QueryOutput extends Result implements \IteratorAggregate
4242
* The primary key of the item where the operation stopped, inclusive of the previous result set. Use this value to
4343
* start a new operation, excluding this value in the new request.
4444
*/
45-
private $lastEvaluatedKey = [];
45+
private $lastEvaluatedKey;
4646

4747
/**
4848
* The capacity units consumed by the `Query` operation. The data returned includes the total provisioned throughput

src/Result/ScanOutput.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class ScanOutput extends Result implements \IteratorAggregate
2222
* An array of item attributes that match the scan criteria. Each element in this array consists of an attribute name
2323
* and the value for that attribute.
2424
*/
25-
private $items = [];
25+
private $items;
2626

2727
/**
2828
* The number of items in the response.
@@ -42,7 +42,7 @@ class ScanOutput extends Result implements \IteratorAggregate
4242
* The primary key of the item where the operation stopped, inclusive of the previous result set. Use this value to
4343
* start a new operation, excluding this value in the new request.
4444
*/
45-
private $lastEvaluatedKey = [];
45+
private $lastEvaluatedKey;
4646

4747
/**
4848
* The capacity units consumed by the `Scan` operation. The data returned includes the total provisioned throughput

src/Result/UpdateItemOutput.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class UpdateItemOutput extends Result
1818
* A map of attribute values as they appear before or after the `UpdateItem` operation, as determined by the
1919
* `ReturnValues` parameter.
2020
*/
21-
private $attributes = [];
21+
private $attributes;
2222

2323
/**
2424
* The capacity units consumed by the `UpdateItem` operation. The data returned includes the total provisioned

0 commit comments

Comments
 (0)