We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6523210 commit 85867a0Copy full SHA for 85867a0
src/Tasks/PageIterator.php
@@ -5,6 +5,7 @@
5
use Exception;
6
use Http\Promise\FulfilledPromise;
7
use Http\Promise\Promise;
8
+use Http\Promise\RejectedPromise;
9
use InvalidArgumentException;
10
use JsonException;
11
use Microsoft\Graph\Core\Models\PageResult;
@@ -148,7 +149,7 @@ private function fetchNextPage(): ?Promise {
148
149
$nextLink = $this->currentPage->getOdataNextLink();
150
151
if ($nextLink === null) {
- return new FulfilledPromise($graphResponse);
152
+ return new RejectedPromise(new InvalidArgumentException('The response does not have a nextLink'));
153
}
154
155
if (!filter_var($nextLink, FILTER_VALIDATE_URL)) {
0 commit comments