Skip to content

Commit dc17ecd

Browse files
authored
Fix usless null initialization (#935)
1 parent 56e49bd commit dc17ecd

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/Result/ListTablesOutput.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class ListTablesOutput extends Result implements \IteratorAggregate
2525
* The name of the last table in the current page of results. Use this value as the `ExclusiveStartTableName` in a new
2626
* request to obtain the next page of results, until all the table names are returned.
2727
*/
28-
private $LastEvaluatedTableName = null;
28+
private $LastEvaluatedTableName;
2929

3030
/**
3131
* Iterates over TableNames.

src/Result/QueryOutput.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class QueryOutput extends Result implements \IteratorAggregate
2727
/**
2828
* The number of items in the response.
2929
*/
30-
private $Count = null;
30+
private $Count;
3131

3232
/**
3333
* The number of items evaluated, before any `QueryFilter` is applied. A high `ScannedCount` value with few, or no,
@@ -36,7 +36,7 @@ class QueryOutput extends Result implements \IteratorAggregate
3636
*
3737
* @see https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/QueryAndScan.html#Count
3838
*/
39-
private $ScannedCount = null;
39+
private $ScannedCount;
4040

4141
/**
4242
* The primary key of the item where the operation stopped, inclusive of the previous result set. Use this value to
@@ -52,7 +52,7 @@ class QueryOutput extends Result implements \IteratorAggregate
5252
*
5353
* @see https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ProvisionedThroughputIntro.html
5454
*/
55-
private $ConsumedCapacity = null;
55+
private $ConsumedCapacity;
5656

5757
public function getConsumedCapacity(): ?ConsumedCapacity
5858
{

src/Result/ScanOutput.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class ScanOutput extends Result implements \IteratorAggregate
2727
/**
2828
* The number of items in the response.
2929
*/
30-
private $Count = null;
30+
private $Count;
3131

3232
/**
3333
* The number of items evaluated, before any `ScanFilter` is applied. A high `ScannedCount` value with few, or no,
@@ -36,7 +36,7 @@ class ScanOutput extends Result implements \IteratorAggregate
3636
*
3737
* @see https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/QueryAndScan.html#Count
3838
*/
39-
private $ScannedCount = null;
39+
private $ScannedCount;
4040

4141
/**
4242
* The primary key of the item where the operation stopped, inclusive of the previous result set. Use this value to
@@ -52,7 +52,7 @@ class ScanOutput extends Result implements \IteratorAggregate
5252
*
5353
* @see https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ProvisionedThroughputIntro.html
5454
*/
55-
private $ConsumedCapacity = null;
55+
private $ConsumedCapacity;
5656

5757
public function getConsumedCapacity(): ?ConsumedCapacity
5858
{

0 commit comments

Comments
 (0)