Skip to content

Commit

Permalink
Add strict comparison null !== instead of ! (#1794)
Browse files Browse the repository at this point in the history
  • Loading branch information
jderusse authored Nov 12, 2024
1 parent 085722c commit 44cc953
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## NOT RELEASED

### Changed

- use strict comparison `null !==` instead of `!`

## 2.0.4

### Changed
Expand Down
2 changes: 1 addition & 1 deletion src/Result/ListThingGroupsForThingResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function getThingGroups(bool $currentPageOnly = false): iterable
$page = $this;
while (true) {
$page->initialize();
if ($page->nextToken) {
if (null !== $page->nextToken) {
$input->setNextToken($page->nextToken);

$this->registerPrefetch($nextPage = $client->listThingGroupsForThing($input));
Expand Down
2 changes: 1 addition & 1 deletion src/Result/ListThingGroupsResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function getThingGroups(bool $currentPageOnly = false): iterable
$page = $this;
while (true) {
$page->initialize();
if ($page->nextToken) {
if (null !== $page->nextToken) {
$input->setNextToken($page->nextToken);

$this->registerPrefetch($nextPage = $client->listThingGroups($input));
Expand Down
2 changes: 1 addition & 1 deletion src/Result/ListThingTypesResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public function getThingTypes(bool $currentPageOnly = false): iterable
$page = $this;
while (true) {
$page->initialize();
if ($page->nextToken) {
if (null !== $page->nextToken) {
$input->setNextToken($page->nextToken);

$this->registerPrefetch($nextPage = $client->listThingTypes($input));
Expand Down
2 changes: 1 addition & 1 deletion src/Result/ListThingsInThingGroupResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function getThings(bool $currentPageOnly = false): iterable
$page = $this;
while (true) {
$page->initialize();
if ($page->nextToken) {
if (null !== $page->nextToken) {
$input->setNextToken($page->nextToken);

$this->registerPrefetch($nextPage = $client->listThingsInThingGroup($input));
Expand Down
2 changes: 1 addition & 1 deletion src/Result/ListThingsResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function getThings(bool $currentPageOnly = false): iterable
$page = $this;
while (true) {
$page->initialize();
if ($page->nextToken) {
if (null !== $page->nextToken) {
$input->setNextToken($page->nextToken);

$this->registerPrefetch($nextPage = $client->listThings($input));
Expand Down

0 comments on commit 44cc953

Please sign in to comment.