Skip to content

Commit 51a7ee8

Browse files
committed
Fix phpstan errors
1 parent 3a7294f commit 51a7ee8

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
@@ -841,8 +841,8 @@ public function testUpdateDocumentsCsvInBatches(): void
841841

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

848848
$response = $index->getDocument(888221515);
@@ -904,8 +904,8 @@ public function testUpdateDocumentsNdjsonInBatches(): void
904904

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

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

0 commit comments

Comments
 (0)