Skip to content

Commit ee6a90f

Browse files
committed
Fix phpstan errors
1 parent dc8dc1d commit ee6a90f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/Endpoints/Indexes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public function update(array $body): Task
145145
public function delete(): Task
146146
{
147147
$response = $this->http->delete(self::PATH.'/'.$this->uid);
148-
assert($response !== null);
148+
\assert(null !== $response);
149149

150150
return Task::fromArray($response);
151151
}

tests/Endpoints/DocumentsTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -840,8 +840,8 @@ public function testUpdateDocumentsCsvInBatches(): void
840840

841841
$tasks = $index->updateDocumentsCsvInBatches($replacement, 1);
842842
self::assertCount(2, $tasks);
843-
foreach ($tasks as $task) {
844-
$index->waitForTask($task->getTaskUid());
843+
foreach ($tasks as $enqueuedTask) {
844+
$index->waitForTask($enqueuedTask->getTaskUid());
845845
}
846846

847847
$response = $index->getDocument(888221515);
@@ -903,8 +903,8 @@ public function testUpdateDocumentsNdjsonInBatches(): void
903903

904904
$tasks = $index->updateDocumentsNdjsonInBatches($replacement, 1);
905905
self::assertCount(2, $tasks);
906-
foreach ($tasks as $task) {
907-
$index->waitForTask($task->getTaskUid());
906+
foreach ($tasks as $enqueuedTask) {
907+
$index->waitForTask($enqueuedTask->getTaskUid());
908908
}
909909

910910
$response = $index->getDocument(412559401);

0 commit comments

Comments
 (0)