File tree Expand file tree Collapse file tree 5 files changed +8
-4
lines changed Expand file tree Collapse file tree 5 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 2
2
3
3
## NOT RELEASED
4
4
5
+ ### Changed
6
+
7
+ - use strict comparison ` null !== ` instead of ` ! `
8
+
5
9
## 3.2.2
6
10
7
11
### Changed
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ public function getConsumedCapacity(bool $currentPageOnly = false): iterable
83
83
$ page = $ this ;
84
84
while (true ) {
85
85
$ page ->initialize ();
86
- if ($ page ->unprocessedKeys ) {
86
+ if (null !== $ page ->unprocessedKeys ) {
87
87
$ input ->setRequestItems ($ page ->unprocessedKeys );
88
88
89
89
$ this ->registerPrefetch ($ nextPage = $ client ->batchGetItem ($ input ));
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ public function getTableNames(bool $currentPageOnly = false): iterable
79
79
$ page = $ this ;
80
80
while (true ) {
81
81
$ page ->initialize ();
82
- if ($ page ->lastEvaluatedTableName ) {
82
+ if (null !== $ page ->lastEvaluatedTableName ) {
83
83
$ input ->setExclusiveStartTableName ($ page ->lastEvaluatedTableName );
84
84
85
85
$ this ->registerPrefetch ($ nextPage = $ client ->listTables ($ input ));
Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ public function getItems(bool $currentPageOnly = false): iterable
116
116
$ page = $ this ;
117
117
while (true ) {
118
118
$ page ->initialize ();
119
- if ($ page ->lastEvaluatedKey ) {
119
+ if (null !== $ page ->lastEvaluatedKey ) {
120
120
$ input ->setExclusiveStartKey ($ page ->lastEvaluatedKey );
121
121
122
122
$ this ->registerPrefetch ($ nextPage = $ client ->query ($ input ));
Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ public function getItems(bool $currentPageOnly = false): iterable
116
116
$ page = $ this ;
117
117
while (true ) {
118
118
$ page ->initialize ();
119
- if ($ page ->lastEvaluatedKey ) {
119
+ if (null !== $ page ->lastEvaluatedKey ) {
120
120
$ input ->setExclusiveStartKey ($ page ->lastEvaluatedKey );
121
121
122
122
$ this ->registerPrefetch ($ nextPage = $ client ->scan ($ input ));
You can’t perform that action at this time.
0 commit comments