Skip to content

Commit fb0b909

Browse files
authored
Add strict comparison null !== instead of ! (#1794)
1 parent 3863468 commit fb0b909

File tree

5 files changed

+8
-4
lines changed

5 files changed

+8
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## NOT RELEASED
44

5+
### Changed
6+
7+
- use strict comparison `null !==` instead of `!`
8+
59
## 3.2.2
610

711
### Changed

src/Result/BatchGetItemOutput.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public function getConsumedCapacity(bool $currentPageOnly = false): iterable
8383
$page = $this;
8484
while (true) {
8585
$page->initialize();
86-
if ($page->unprocessedKeys) {
86+
if (null !== $page->unprocessedKeys) {
8787
$input->setRequestItems($page->unprocessedKeys);
8888

8989
$this->registerPrefetch($nextPage = $client->batchGetItem($input));

src/Result/ListTablesOutput.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public function getTableNames(bool $currentPageOnly = false): iterable
7979
$page = $this;
8080
while (true) {
8181
$page->initialize();
82-
if ($page->lastEvaluatedTableName) {
82+
if (null !== $page->lastEvaluatedTableName) {
8383
$input->setExclusiveStartTableName($page->lastEvaluatedTableName);
8484

8585
$this->registerPrefetch($nextPage = $client->listTables($input));

src/Result/QueryOutput.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public function getItems(bool $currentPageOnly = false): iterable
116116
$page = $this;
117117
while (true) {
118118
$page->initialize();
119-
if ($page->lastEvaluatedKey) {
119+
if (null !== $page->lastEvaluatedKey) {
120120
$input->setExclusiveStartKey($page->lastEvaluatedKey);
121121

122122
$this->registerPrefetch($nextPage = $client->query($input));

src/Result/ScanOutput.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public function getItems(bool $currentPageOnly = false): iterable
116116
$page = $this;
117117
while (true) {
118118
$page->initialize();
119-
if ($page->lastEvaluatedKey) {
119+
if (null !== $page->lastEvaluatedKey) {
120120
$input->setExclusiveStartKey($page->lastEvaluatedKey);
121121

122122
$this->registerPrefetch($nextPage = $client->scan($input));

0 commit comments

Comments
 (0)