File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -145,7 +145,7 @@ public function update(array $body): Task
145
145
public function delete (): Task
146
146
{
147
147
$ response = $ this ->http ->delete (self ::PATH .'/ ' .$ this ->uid );
148
- assert ($ response !== null );
148
+ \ assert (null !== $ response );
149
149
150
150
return Task::fromArray ($ response );
151
151
}
Original file line number Diff line number Diff line change @@ -841,8 +841,8 @@ public function testUpdateDocumentsCsvInBatches(): void
841
841
842
842
$ tasks = $ index ->updateDocumentsCsvInBatches ($ replacement , 1 );
843
843
self ::assertCount (2 , $ tasks );
844
- foreach ($ tasks as $ task ) {
845
- $ index ->waitForTask ($ task ->getTaskUid ());
844
+ foreach ($ tasks as $ enqueuedTask ) {
845
+ $ index ->waitForTask ($ enqueuedTask ->getTaskUid ());
846
846
}
847
847
848
848
$ response = $ index ->getDocument (888221515 );
@@ -904,8 +904,8 @@ public function testUpdateDocumentsNdjsonInBatches(): void
904
904
905
905
$ tasks = $ index ->updateDocumentsNdjsonInBatches ($ replacement , 1 );
906
906
self ::assertCount (2 , $ tasks );
907
- foreach ($ tasks as $ task ) {
908
- $ index ->waitForTask ($ task ->getTaskUid ());
907
+ foreach ($ tasks as $ enqueuedTask ) {
908
+ $ index ->waitForTask ($ enqueuedTask ->getTaskUid ());
909
909
}
910
910
911
911
$ response = $ index ->getDocument (412559401 );
You can’t perform that action at this time.
0 commit comments