Skip to content

Commit abed5ba

Browse files
committed
Fix PHPStan failures
1 parent 0013cd5 commit abed5ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Tasks/PageIterator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function __construct($response, RequestAdapter $requestAdapter, ?array $c
5757

5858
if ($page !== null) {
5959
$this->currentPage = $page;
60-
$this->hasNext = !(empty($page->getValue()) || is_null($page->getValue()));
60+
$this->hasNext = !empty($page->getValue());
6161
}
6262
}
6363

@@ -124,7 +124,7 @@ public function next(): ?PageResult
124124
}
125125

126126
/**
127-
* @param object|array<mixed> $response
127+
* @param object|array<mixed>|Parsable|null $response
128128
* @return PageResult|null
129129
* @throws JsonException
130130
*/

0 commit comments

Comments
 (0)