From 048ae122a84a62e708ab20851ed7d3f72c2b50dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Deruss=C3=A9?= Date: Tue, 12 Nov 2024 16:05:15 +0100 Subject: [PATCH] Add strict comparison `null !==` instead of `!` (#1794) --- CHANGELOG.md | 4 ++++ src/Result/ListQueuesResult.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 638d921..f134a19 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ## NOT RELEASED +### Changed + +- use strict comparison `null !==` instead of `!` + ## 2.2.0 ### Added diff --git a/src/Result/ListQueuesResult.php b/src/Result/ListQueuesResult.php index 7ad3b5f..6cdedde 100644 --- a/src/Result/ListQueuesResult.php +++ b/src/Result/ListQueuesResult.php @@ -72,7 +72,7 @@ public function getQueueUrls(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->listQueues($input));