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
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 }
Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments