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 7d7e074 commit 3bd28d2
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 `!`

## 1.4.0

### Added
Expand Down
2 changes: 1 addition & 1 deletion src/Result/DescribeEndpointsResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function getEndpoints(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->describeEndpoints($input));
Expand Down
2 changes: 1 addition & 1 deletion src/Result/ListJobsResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ public function getJobs(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->listJobs($input));
Expand Down

0 comments on commit 3bd28d2

Please sign in to comment.