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 599088b commit fcd0e39
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.1.3

### Changed
Expand Down
2 changes: 1 addition & 1 deletion src/Result/ListScheduleGroupsOutput.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function getScheduleGroups(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->listScheduleGroups($input));
Expand Down
2 changes: 1 addition & 1 deletion src/Result/ListSchedulesOutput.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function getSchedules(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->listSchedules($input));
Expand Down

0 comments on commit fcd0e39

Please sign in to comment.