Skip to content

Commit 873beb3

Browse files
authored
Add strict comparison null !== instead of ! (#1794)
1 parent a4dbc66 commit 873beb3

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG.md

+4
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
## 1.2.0
610

711
### Added

src/Result/GetDifferencesOutput.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function getDifferences(bool $currentPageOnly = false): iterable
5555
$page = $this;
5656
while (true) {
5757
$page->initialize();
58-
if ($page->nextToken) {
58+
if (null !== $page->nextToken) {
5959
$input->setNextToken($page->nextToken);
6060

6161
$this->registerPrefetch($nextPage = $client->getDifferences($input));

src/Result/ListRepositoriesOutput.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public function getRepositories(bool $currentPageOnly = false): iterable
7474
$page = $this;
7575
while (true) {
7676
$page->initialize();
77-
if ($page->nextToken) {
77+
if (null !== $page->nextToken) {
7878
$input->setNextToken($page->nextToken);
7979

8080
$this->registerPrefetch($nextPage = $client->listRepositories($input));

0 commit comments

Comments
 (0)