Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / drush / drush / includes / batch.inc
index f2a659d579a9c421d861f1318efc32ad2972e094..77be5f33829159ed7be0aba2e2eb2cf862f9bbe8 100644 (file)
@@ -320,7 +320,7 @@ function _drush_batch_finished() {
         $operations = $queue->getAllItems();
         $elapsed = $batch_set['elapsed'] / 1000;
         $elapsed = drush_drupal_major_version() >=8 ? \Drupal::service('date.formatter')->formatInterval($elapsed) : format_interval($elapsed);
-        $batch_set['finished']($batch_set['success'], $batch_set['results'], $operations, $elapsed);
+        call_user_func_array($batch_set['finished'], [$batch_set['success'], $batch_set['results'], $operations, $elapsed]);
         $results[$id] = $batch_set['results'];
       }
     }