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 aac17b1 commit 30c136f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 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 `!`

## 3.0.0

### BC-BREAK
Expand Down
2 changes: 1 addition & 1 deletion src/Result/ListApiKeysResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function getApiKeys(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->listApiKeys($input));
Expand Down
2 changes: 1 addition & 1 deletion src/Result/ListResolversResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public function getResolvers(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->listResolvers($input));
Expand Down

0 comments on commit 30c136f

Please sign in to comment.